lib/utils.js
function(obj, iterator, context) {
        if (!obj) return
        else if (obj.forEach) obj.forEach(iterator)
        else if (obj.length == +obj.length) {
            for (var i = 0; i < obj.length; i++) iterator.call(context, obj[i], i)
        } else {
            for (var key in obj) iterator.call(context, obj[key], key)
        }
    }
function(obj, iterator, context) {
        if (!obj) return
        else if (obj.forEach) obj.forEach(iterator)
        else if (obj.length == +obj.length) {
            for (var i = 0; i < obj.length; i++) iterator.call(context, obj[i], i)
        } else {
            for (var key in obj) iterator.call(context, obj[key], key)
        }
    }
function ( obj , iterator , context ) { if ( ! obj ) return else if ( obj . forEach ) obj . forEach ( iterator ) else if ( obj . length == + obj . length ) { for ( var i = 0 ; i < obj . length ; i ++ ) iterator . call ( context , obj [ i ] , i ) } else { for ( var key in obj ) iterator . call ( context , obj [ key ] , key ) } }
forEach
I don't want to import underscore, it looks like so heavy if using in chain
forEach I don t want to import underscore it looks like so heavy if using in chain