underscore.js 一个强大的js函数库

Underscore提供的100多个函数,主要涉及对Collection、Object、Array、Function的操做:css

Collections(集合) 
eachmapreducereduceRightfindfilterrejectallanyincludeinvoke,pluckmaxminsortBygroupBysortedIndexshuffletoArraysizegit

Arrays(数组) 
firstinitiallastrestcompactflattenwithoutunionintersection,differenceuniqzipindexOflastIndexOfrangegithub

Functions(函数) 
bindbindAllmemoizedelaydeferthrottledebounceonceafterwrap,compose数组

Objects(对象) 
keysvaluesfunctionsextenddefaultsclonetapisEqualisEmpty,isElementisArrayisArgumentsisFunctionisStringisNumberisBoolean,isDateisRegExpisNaNisNullisUndefinedide

Utility(功能) 
noConflictidentitytimesmixinuniqueIdescapetemplate函数

Chaining 
chainvaluespa

 

https://github.com/the5fire/backbonejs-learning-noterest

相关文章
相关标签/搜索