Best proceed to Retrofit all JS files for replacing .forEach(iteratorFn)
with _.each(, iteratorFn)I have integrate of leave JS files, that we need
to retrofit to support cross-browser web-based concentration ( personally
for IE8 support)For that, we need to reinstate many of a methods, by
providing an altogether opposite signatureFor
e.g:-myArrayObj.forEach(function(myObj){//do something},
this);To:_.each(myArrayObj, function(myObj){//do something},
this);Similarly we need to reinstate some(not all) of a next methods as
well, that are not upheld natively by IE8.(For e.g some of a ES5 Features
:- Object: keysArray: isArrayArray.prototype: forEach, map, filter,
every, some, reduce, reduceRight, indexOf, lastIndexOfDate:
nowDate.prototype: toISOString, toJSONFunction.prototype:
bindString.prototype: trim)to homogeneous APIs in underscore libraries.I
am not good with unchanging expressions, and we also attempted npm grasp
utility(npm exercise -g grasp), however opposed some issues during
run-time in replacement.Any suggestion/comment is unequivocally many
appreciated, if someone can advise a illustration countenance or a
improved proceed to do a replacement.
No comments:
Post a Comment