Skip to content

Instantly share code, notes, and snippets.

@Twipped
Last active August 20, 2019 11:27
Show Gist options
  • Save Twipped/6aa4e7a17833c3c4cb2d to your computer and use it in GitHub Desktop.
Save Twipped/6aa4e7a17833c3c4cb2d to your computer and use it in GitHub Desktop.
Lodash 3.0 Backbone Build
lodash compat include="bind,bindAll,clone,contains,countBy,defaults,difference,escape,every,extend,filter,find,first,forEach,groupBy,has,indexOf,initial,invert,invoke,isArray,isEmpty,isEqual,isFunction,isObject,isRegExp,isString,keys,last,lastIndexOf,map,max,min,mixin,omit,once,pairs,pick,reduce,reduceRight,reject,rest,result,shuffle,size,some,sortBy,sortedIndex,toArray,uniqueId,value,values,without"
@Twipped
Copy link
Author

Twipped commented Jan 26, 2015

This will create a lodash 3 build containing ONLY the features needed for Backbone. You can add more functions by including a "plus" argument on the end. Eg: plus="curry,debounce"

Change compat to modern if you don't need to support IE below version 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment