PageRenderTime 28ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/README.md

https://gitlab.com/marvin1/soundcloud
Markdown | 164 lines | 118 code | 46 blank | 0 comment | 0 complexity | 6ea7af8312bb734f9b6f3c982bb1d3e5 MD5 | raw file
  1. # Lo-Dash v1.0.1
  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. * Lo-Dash builds (for modern environments):<br>
  5. [Development](https://raw.github.com/lodash/lodash/v1.0.1/dist/lodash.js) and
  6. [Production](https://raw.github.com/lodash/lodash/v1.0.1/dist/lodash.min.js)
  7. * Lo-Dash compatibility builds (for legacy and modern environments):<br>
  8. [Development](https://raw.github.com/lodash/lodash/v1.0.1/dist/lodash.compat.js) and
  9. [Production](https://raw.github.com/lodash/lodash/v1.0.1/dist/lodash.compat.min.js)
  10. * Underscore compatibility builds:<br>
  11. [Development](https://raw.github.com/lodash/lodash/v1.0.1/dist/lodash.underscore.js) and
  12. [Production](https://raw.github.com/lodash/lodash/v1.0.1/dist/lodash.underscore.min.js)
  13. * CDN copies of v1.0.1s builds are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/):<br>
  14. [Lo-Dash dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.1/lodash.js),
  15. [Lo-Dash prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.1/lodash.min.js),<br>
  16. [Lo-Dash compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.1/lodash.compat.js),
  17. [Lo-Dash compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.1/lodash.compat.min.js),<br>
  18. [Underscore compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.1/lodash.underscore.js), and
  19. [Underscore compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.1/lodash.underscore.min.js)
  20. * For optimal file size, [create a custom build](http://lodash.com/custom-builds) with only the features you need
  21. ## Dive in
  22. Weve got [API docs](http://lodash.com/docs), [benchmarks](http://lodash.com/benchmarks), and [unit tests](http://lodash.com/tests).
  23. For a list of upcoming features, check out our [roadmap](https://github.com/lodash/lodash/wiki/Roadmap).
  24. ## Resources
  25. For more information check out these articles, screencasts, and other videos over Lo-Dash:
  26. * Posts
  27. - [Say Hello to Lo-Dash](http://kitcambridge.be/blog/say-hello-to-lo-dash/)
  28. * Videos
  29. - [Introducing Lo-Dash](https://vimeo.com/44154599)
  30. - [Lo-Dash optimizations and custom builds](https://vimeo.com/44154601)
  31. - [Lo-Dashs origin and why its a better utility belt](https://vimeo.com/44154600)
  32. - [Unit testing in Lo-Dash](https://vimeo.com/45865290)
  33. - [Lo-Dashs approach to native method use](https://vimeo.com/48576012)
  34. - [CascadiaJS: Lo-Dash for a better utility belt](http://www.youtube.com/watch?v=dpPy4f_SeEk)
  35. ## Features
  36. * AMD loader support ([RequireJS](http://requirejs.org/), [curl.js](https://github.com/cujojs/curl), etc.)
  37. * [_()](http://lodash.com/docs#_) supports intuitive chaining
  38. * [_.at](http://lodash.com/docs#at) for cherry-picking collection values
  39. * [_.bindKey](http://lodash.com/docs#bindKey) for binding [*“lazy”* defined](http://michaux.ca/articles/lazy-function-definition-pattern) methods
  40. * [_.cloneDeep](http://lodash.com/docs#cloneDeep) for deep cloning arrays and objects
  41. * [_.contains](http://lodash.com/docs#contains) accepts a `fromIndex` argument
  42. * [_.forEach](http://lodash.com/docs#forEach) is chainable and supports exiting iteration early
  43. * [_.forIn](http://lodash.com/docs#forIn) for iterating over an object’s own and inherited properties
  44. * [_.forOwn](http://lodash.com/docs#forOwn) for iterating over an object’s own properties
  45. * [_.isPlainObject](http://lodash.com/docs#isPlainObject) checks if values are created by the `Object` constructor
  46. * [_.merge](http://lodash.com/docs#merge) for a deep [_.extend](http://lodash.com/docs#extend)
  47. * [_.partial](http://lodash.com/docs#partial) and [_.partialRight](http://lodash.com/docs#partialRight) for partial application without `this` binding
  48. * [_.template](http://lodash.com/docs#template) supports [*“imports”* options](http://lodash.com/docs#templateSettings_imports), [ES6 template delimiters](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6), and [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  49. * [_.where](http://lodash.com/docs#where) supports deep object comparisons
  50. * [_.clone](http://lodash.com/docs#clone), [_.omit](http://lodash.com/docs#omit), [_.pick](http://lodash.com/docs#pick),
  51. [and more](http://lodash.com/docs "_.assign, _.cloneDeep, _.first, _.initial, _.isEqual, _.last, _.merge, _.rest") accept `callback` and `thisArg` arguments
  52. * [_.contains](http://lodash.com/docs#contains), [_.size](http://lodash.com/docs#size), [_.toArray](http://lodash.com/docs#toArray),
  53. [and more](http://lodash.com/docs "_.at, _.countBy, _.every, _.filter, _.find, _.forEach, _.groupBy, _.invoke, _.map, _.max, _.min, _.pluck, _.reduce, _.reduceRight, _.reject, _.shuffle, _.some, _.sortBy, _.where") accept strings
  54. * [_.filter](http://lodash.com/docs#filter), [_.find](http://lodash.com/docs#find), [_.map](http://lodash.com/docs#map),
  55. [and more](http://lodash.com/docs "_.countBy, _.every, _.first, _.groupBy, _.initial, _.last, _.max, _.min, _.reject, _.rest, _.some, _.sortBy, _.sortedIndex, _.uniq") support *“_.pluck”* and *“_.where”* `callback` shorthands
  56. ## Support
  57. Lo-Dash has been tested in at least Chrome 5~24, Firefox 1~18, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.20, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5.
  58. ## Installation and usage
  59. In browsers:
  60. ```html
  61. <script src="lodash.js"></script>
  62. ```
  63. Using [`npm`](http://npmjs.org/):
  64. ```bash
  65. npm install lodash
  66. npm install -g lodash
  67. npm link lodash
  68. ```
  69. To avoid potential issues, update `npm` before installing Lo-Dash:
  70. ```bash
  71. npm install npm -g
  72. ```
  73. In [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/):
  74. ```js
  75. var _ = require('lodash');
  76. // or as a drop-in replacement for Underscore
  77. var _ = require('lodash/lodash.underscore');
  78. ```
  79. **Note:** 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.
  80. In [RingoJS v0.7.0-](http://ringojs.org/):
  81. ```js
  82. var _ = require('lodash')._;
  83. ```
  84. In [Rhino](http://www.mozilla.org/rhino/):
  85. ```js
  86. load('lodash.js');
  87. ```
  88. In an AMD loader like [RequireJS](http://requirejs.org/):
  89. ```js
  90. require({
  91. 'paths': {
  92. 'underscore': 'path/to/lodash'
  93. }
  94. },
  95. ['underscore'], function(_) {
  96. console.log(_.VERSION);
  97. });
  98. ```
  99. ## Release Notes
  100. ### <sup>v1.0.1</sup>
  101. * Add support for specifying source map URLs in `-p`/`--source-map` build options
  102. * Ensured the second argument passed to `_.assign` is not treated as a `callback`
  103. * Ensured `-p`/`--source-map` build options correctly set the `sourceMappingURL`
  104. * Made `-p`/`--source-map` build options set source map *sources* keys based on the builds performed
  105. * Made `_.defer` use `setImmediate`, in Node.js, when available
  106. * Made `_.where` search arrays for values regardless of their index position
  107. * Removed dead code from `_.template`
  108. The full changelog is available [here](https://github.com/lodash/lodash/wiki/Changelog).
  109. ## BestieJS
  110. Lo-Dash is part of the [BestieJS](https://github.com/bestiejs) *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
  111. ## Author
  112. | [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](http://twitter.com/jdalton "Follow @jdalton on Twitter") |
  113. |---|
  114. | [John-David Dalton](http://allyoucanleet.com/) |
  115. ## Contributors
  116. | [![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") |
  117. |---|---|---|
  118. | [Blaine Bublitz](http://iceddev.com/) | [Kit Cambridge](http://kitcambridge.github.io/) | [Mathias Bynens](http://mathiasbynens.be/) |