* if the argument is an array, we want to execute the fn on each entry * if it aint an array we don't want to do a thing. * this is used by all the methods that accept a single and array argument. * @param {*|Array} arg * @param {String} fn * @param {Object} [context] * @returns {Boolean}
(arg, fn, context)
| 92507 | * @param {Object} [context] |
| 92508 | * @returns {Boolean} |
| 92509 | */ function invokeArrayArg(arg, fn, context) { |
| 92510 | if (Array.isArray(arg)) { |
| 92511 | each(arg, context[fn], context); |
| 92512 | return true; |
| 92513 | } |
| 92514 | return false; |
| 92515 | } |
| 92516 | /** |
| 92517 | * walk objects and arrays |
| 92518 | * @param {Object} obj |