PageRenderTime 22ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/yo/node_modules/yeoman-generator/node_modules/file-utils/node_modules/lodash/README.md

https://bitbucket.org/phillipburch/schejule
Markdown | 142 lines | 111 code | 31 blank | 0 comment | 0 complexity | 0a06c732700594ebf6db0843d05ec21a MD5 | raw file
  1. # Lo-Dash v2.1.0
  2. A utility library delivering consistency, [customization](http://lodash.com/custom-builds), [performance](http://lodash.com/benchmarks), & [extras](http://lodash.com/#features).
  3. ## Download
  4. * Modern builds perfect for newer browsers/environments:<br>
  5. [Development](https://raw.github.com/lodash/lodash/2.1.0/dist/lodash.js) &
  6. [Production](https://raw.github.com/lodash/lodash/2.1.0/dist/lodash.min.js)
  7. * Compatibility builds for older environment support too:<br>
  8. [Development](https://raw.github.com/lodash/lodash/2.1.0/dist/lodash.compat.js) &
  9. [Production](https://raw.github.com/lodash/lodash/2.1.0/dist/lodash.compat.min.js)
  10. * Underscore builds to use as a drop-in replacement:<br>
  11. [Development](https://raw.github.com/lodash/lodash/2.1.0/dist/lodash.underscore.js) &
  12. [Production](https://raw.github.com/lodash/lodash/2.1.0/dist/lodash.underscore.min.js)
  13. CDN copies are available on [cdnjs](http://cdnjs.com/libraries/lodash.js/) & [jsDelivr](http://www.jsdelivr.com/#!lodash).<br>
  14. For smaller file sizes, create [custom builds](http://lodash.com/custom-builds) with only the features needed.<br>
  15. Love modules? Weve got you covered with [lodash-amd](https://npmjs.org/package/lodash-amd), [lodash-node](https://npmjs.org/package/lodash-node), and [npm packages](https://npmjs.org/browse/author/jdalton) per method.
  16. ## Dive in
  17. Theres plenty of [documentation](http://lodash.com/docs), [unit tests](http://lodash.com/tests), & [benchmarks](http://lodash.com/benchmarks).<br>
  18. For a list of upcoming features, check out our [roadmap](https://github.com/lodash/lodash/wiki/Roadmap).<br>
  19. The full changelog for this release is available on our [wiki](https://github.com/lodash/lodash/wiki/Changelog).
  20. ## Features *not* in Underscore
  21. * AMD loader support ([curl](https://github.com/cujojs/curl), [dojo](http://dojotoolkit.org/), [requirejs](http://requirejs.org/), etc.)
  22. * [_()](http://lodash.com/docs#_) supports intuitive chaining
  23. * [_.at](http://lodash.com/docs#at) for cherry-picking collection values
  24. * [_.bindKey](http://lodash.com/docs#bindKey) for binding [*“lazy”*](http://michaux.ca/articles/lazy-function-definition-pattern) defined methods
  25. * [_.cloneDeep](http://lodash.com/docs#cloneDeep) for deep cloning arrays & objects
  26. * [_.contains](http://lodash.com/docs#contains) accepts a `fromIndex`
  27. * [_.createCallback](http://lodash.com/docs#createCallback) for extending callbacks in methods & mixins
  28. * [_.curry](http://lodash.com/docs#curry) for creating [curried](http://hughfdjackson.com/javascript/2013/07/06/why-curry-helps/) functions
  29. * [_.debounce](http://lodash.com/docs#debounce) & [_.throttle](http://lodash.com/docs#throttle) accept `options` for more control
  30. * [_.findIndex](http://lodash.com/docs#findIndex) & [_.findKey](http://lodash.com/docs#findKey) for finding indexes & keys
  31. * [_.forEach](http://lodash.com/docs#forEach) is chainable & supports exiting early
  32. * [_.forIn](http://lodash.com/docs#forIn) for iterating own & inherited properties
  33. * [_.forOwn](http://lodash.com/docs#forOwn) for iterating own properties
  34. * [_.isPlainObject](http://lodash.com/docs#isPlainObject) for checking if values are created by `Object`
  35. * [_.memoize](http://lodash.com/docs#memoize) exposes the `cache` of memoized functions
  36. * [_.merge](http://lodash.com/docs#merge) for a deep [_.extend](http://lodash.com/docs#extend)
  37. * [_.parseInt](http://lodash.com/docs#parseInt) for consistent behavior
  38. * [_.partialRight](http://lodash.com/docs#partialRight) for [partial application](http://lodash.com/docs#partial) from the right
  39. * [_.pull](http://lodash.com/docs#pull) & [_.remove](http://lodash.com/docs#remove) for mutating arrays
  40. * [_.random](http://lodash.com/docs#random) supports returning floating-point numbers
  41. * [_.runInContext](http://lodash.com/docs#runInContext) for easier mocking
  42. * [_.support](http://lodash.com/docs#support) for flagging environment features
  43. * [_.template](http://lodash.com/docs#template) supports [*“imports”*](http://lodash.com/docs#templateSettings_imports) options & [ES6 template delimiters](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6)
  44. * [_.transform](http://lodash.com/docs#transform) as a powerful alternative to [_.reduce](http://lodash.com/docs#reduce) for transforming objects
  45. * [_.where](http://lodash.com/docs#where) supports deep object comparisons
  46. * [_.zip](http://lodash.com/docs#zip) is capable of unzipping values
  47. * [_.omit](http://lodash.com/docs#omit), [_.pick](http://lodash.com/docs#pick), &
  48. [more](http://lodash.com/docs "_.assign, _.clone, _.cloneDeep, _.first, _.initial, _.isEqual, _.last, _.merge, _.rest") accept callbacks
  49. * [_.contains](http://lodash.com/docs#contains), [_.toArray](http://lodash.com/docs#toArray), &
  50. [more](http://lodash.com/docs "_.at, _.countBy, _.every, _.filter, _.find, _.forEach, _.forEachRight, _.groupBy, _.invoke, _.map, _.max, _.min, _.pluck, _.reduce, _.reduceRight, _.reject, _.shuffle, _.size, _.some, _.sortBy, _.where") accept strings
  51. * [_.filter](http://lodash.com/docs#filter), [_.map](http://lodash.com/docs#map), &
  52. [more](http://lodash.com/docs "_.countBy, _.every, _.find, _.findKey, _.findLast, _.findLastIndex, _.findLastKey, _.first, _.groupBy, _.initial, _.last, _.max, _.min, _.reject, _.rest, _.some, _.sortBy, _.sortedIndex, _.uniq") support *“_.pluck”* & *“_.where”* shorthands
  53. * [_.findLast](http://lodash.com/docs#findLast), [_.findLastIndex](http://lodash.com/docs#findLastIndex), &
  54. [more](http://lodash.com/docs "_.findLastKey, _.forEachRight, _.forInRight, _.forOwnRight") right-associative methods
  55. ## Resources
  56. * Posts
  57. - [Say Hello to Lo-Dash](http://kitcambridge.be/blog/say-hello-to-lo-dash/)
  58. - [Custom builds in Lo-Dash 2.0](http://kitcambridge.be/blog/custom-builds-in-lo-dash-2-dot-0/)
  59. * Videos
  60. - [Introduction](https://vimeo.com/44154599)
  61. - [Origins](https://vimeo.com/44154600)
  62. - [Optimizations & builds](https://vimeo.com/44154601)
  63. - [Native method use](https://vimeo.com/48576012)
  64. - [Testing](https://vimeo.com/45865290)
  65. - [CascadiaJS 12](http://www.youtube.com/watch?v=dpPy4f_SeEk)
  66. ## Support
  67. Tested in Chrome 5~29, Firefox 2~24, IE 6-10, Opera 9.25~16, Safari 3-6, Node.js 0.6.8-0.10.18, Narwhal 0.3.2, PhantomJS 1.9.2, RingoJS 0.9, & Rhino 1.7RC5.
  68. ## Installation & usage
  69. In browsers:
  70. ```html
  71. <script src="lodash.js"></script>
  72. ```
  73. Using [`npm`](http://npmjs.org/):
  74. ```bash
  75. npm i --save lodash
  76. {sudo} npm i -g lodash
  77. npm ln lodash
  78. ```
  79. In [Node.js](http://nodejs.org/) & [Ringo](http://ringojs.org/):
  80. ```js
  81. var _ = require('lodash');
  82. // or as Underscore
  83. var _ = require('lodash/dist/lodash.underscore');
  84. ```
  85. **Notes:**
  86. * Dont assign values to [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL
  87. * If Lo-Dash is installed globally, run [`npm link lodash`](http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/) in your project’s root directory *before* requiring it
  88. * Node.js 0.10.8-0.10.11 [have](https://github.com/joyent/node/issues/5622) [bugs](https://github.com/joyent/node/issues/5688) preventing minified builds
  89. In [Rhino](http://www.mozilla.org/rhino/):
  90. ```js
  91. load('lodash.js');
  92. ```
  93. In an AMD loader:
  94. ```js
  95. require({
  96. 'packages': [
  97. { 'name': 'lodash', 'location': 'path/to/lodash', 'main': 'lodash' }
  98. ]
  99. },
  100. ['lodash'], function(_) {
  101. console.log(_.VERSION);
  102. });
  103. ```
  104. ## Author
  105. | [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](http://twitter.com/jdalton "Follow @jdalton on Twitter") |
  106. |---|
  107. | [John-David Dalton](http://allyoucanleet.com/) |
  108. ## Contributors
  109. | [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](http://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](http://twitter.com/mathias "Follow @mathias on Twitter") |
  110. |---|---|---|
  111. | [Blaine Bublitz](http://iceddev.com/) | [Kit Cambridge](http://kitcambridge.github.io/) | [Mathias Bynens](http://mathiasbynens.be/) |