teropa/build-your-own-angularjs

P368: Typo on page 368 due to lodash upgrade

Opened this issue · 0 comments

lodash has changed from _.any to _.some

function isAllDefined(val) { return !_.any(val, _.isUndefined); }

should be

function isAllDefined(val) { return !_.some(val, _.isUndefined); }