Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2e1c0f2

Browse filesBrowse files
committed
Add npm-package
1 parent 1b6c282 commit 2e1c0f2
Copy full SHA for 2e1c0f2

File tree

Expand file treeCollapse file tree

1,046 files changed

+40050
-0
lines changed
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

1,046 files changed

+40050
-0
lines changed
Open diff view settings
Collapse file

‎npm-package/README.md‎

Copy file name to clipboard
+39Lines changed: 39 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# lodash v4.17.18
2+
3+
The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
4+
5+
## Installation
6+
7+
Using npm:
8+
```shell
9+
$ npm i -g npm
10+
$ npm i --save lodash
11+
```
12+
13+
In Node.js:
14+
```js
15+
// Load the full build.
16+
var _ = require('lodash');
17+
// Load the core build.
18+
var _ = require('lodash/core');
19+
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
20+
var fp = require('lodash/fp');
21+
22+
// Load method categories.
23+
var array = require('lodash/array');
24+
var object = require('lodash/fp/object');
25+
26+
// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
27+
var at = require('lodash/at');
28+
var curryN = require('lodash/fp/curryN');
29+
```
30+
31+
See the [package source](https://github.com/lodash/lodash/tree/4.17.18-npm) for more details.
32+
33+
**Note:**<br>
34+
Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
35+
36+
## Support
37+
38+
Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.<br>
39+
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.
Collapse file

‎npm-package/_DataView.js‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var getNative = require('./_getNative'),
2+
root = require('./_root');
3+
4+
/* Built-in method references that are verified to be native. */
5+
var DataView = getNative(root, 'DataView');
6+
7+
module.exports = DataView;
Collapse file

‎npm-package/_Hash.js‎

Copy file name to clipboard
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var hashClear = require('./_hashClear'),
2+
hashDelete = require('./_hashDelete'),
3+
hashGet = require('./_hashGet'),
4+
hashHas = require('./_hashHas'),
5+
hashSet = require('./_hashSet');
6+
7+
/**
8+
* Creates a hash object.
9+
*
10+
* @private
11+
* @constructor
12+
* @param {Array} [entries] The key-value pairs to cache.
13+
*/
14+
function Hash(entries) {
15+
var index = -1,
16+
length = entries == null ? 0 : entries.length;
17+
18+
this.clear();
19+
while (++index < length) {
20+
var entry = entries[index];
21+
this.set(entry[0], entry[1]);
22+
}
23+
}
24+
25+
// Add methods to `Hash`.
26+
Hash.prototype.clear = hashClear;
27+
Hash.prototype['delete'] = hashDelete;
28+
Hash.prototype.get = hashGet;
29+
Hash.prototype.has = hashHas;
30+
Hash.prototype.set = hashSet;
31+
32+
module.exports = Hash;
Collapse file

‎npm-package/_LazyWrapper.js‎

Copy file name to clipboard
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
var baseCreate = require('./_baseCreate'),
2+
baseLodash = require('./_baseLodash');
3+
4+
/** Used as references for the maximum length and index of an array. */
5+
var MAX_ARRAY_LENGTH = 4294967295;
6+
7+
/**
8+
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
9+
*
10+
* @private
11+
* @constructor
12+
* @param {*} value The value to wrap.
13+
*/
14+
function LazyWrapper(value) {
15+
this.__wrapped__ = value;
16+
this.__actions__ = [];
17+
this.__dir__ = 1;
18+
this.__filtered__ = false;
19+
this.__iteratees__ = [];
20+
this.__takeCount__ = MAX_ARRAY_LENGTH;
21+
this.__views__ = [];
22+
}
23+
24+
// Ensure `LazyWrapper` is an instance of `baseLodash`.
25+
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
26+
LazyWrapper.prototype.constructor = LazyWrapper;
27+
28+
module.exports = LazyWrapper;
Collapse file

‎npm-package/_ListCache.js‎

Copy file name to clipboard
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var listCacheClear = require('./_listCacheClear'),
2+
listCacheDelete = require('./_listCacheDelete'),
3+
listCacheGet = require('./_listCacheGet'),
4+
listCacheHas = require('./_listCacheHas'),
5+
listCacheSet = require('./_listCacheSet');
6+
7+
/**
8+
* Creates an list cache object.
9+
*
10+
* @private
11+
* @constructor
12+
* @param {Array} [entries] The key-value pairs to cache.
13+
*/
14+
function ListCache(entries) {
15+
var index = -1,
16+
length = entries == null ? 0 : entries.length;
17+
18+
this.clear();
19+
while (++index < length) {
20+
var entry = entries[index];
21+
this.set(entry[0], entry[1]);
22+
}
23+
}
24+
25+
// Add methods to `ListCache`.
26+
ListCache.prototype.clear = listCacheClear;
27+
ListCache.prototype['delete'] = listCacheDelete;
28+
ListCache.prototype.get = listCacheGet;
29+
ListCache.prototype.has = listCacheHas;
30+
ListCache.prototype.set = listCacheSet;
31+
32+
module.exports = ListCache;
Collapse file

‎npm-package/_LodashWrapper.js‎

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
var baseCreate = require('./_baseCreate'),
2+
baseLodash = require('./_baseLodash');
3+
4+
/**
5+
* The base constructor for creating `lodash` wrapper objects.
6+
*
7+
* @private
8+
* @param {*} value The value to wrap.
9+
* @param {boolean} [chainAll] Enable explicit method chain sequences.
10+
*/
11+
function LodashWrapper(value, chainAll) {
12+
this.__wrapped__ = value;
13+
this.__actions__ = [];
14+
this.__chain__ = !!chainAll;
15+
this.__index__ = 0;
16+
this.__values__ = undefined;
17+
}
18+
19+
LodashWrapper.prototype = baseCreate(baseLodash.prototype);
20+
LodashWrapper.prototype.constructor = LodashWrapper;
21+
22+
module.exports = LodashWrapper;
Collapse file

‎npm-package/_Map.js‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var getNative = require('./_getNative'),
2+
root = require('./_root');
3+
4+
/* Built-in method references that are verified to be native. */
5+
var Map = getNative(root, 'Map');
6+
7+
module.exports = Map;
Collapse file

‎npm-package/_MapCache.js‎

Copy file name to clipboard
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var mapCacheClear = require('./_mapCacheClear'),
2+
mapCacheDelete = require('./_mapCacheDelete'),
3+
mapCacheGet = require('./_mapCacheGet'),
4+
mapCacheHas = require('./_mapCacheHas'),
5+
mapCacheSet = require('./_mapCacheSet');
6+
7+
/**
8+
* Creates a map cache object to store key-value pairs.
9+
*
10+
* @private
11+
* @constructor
12+
* @param {Array} [entries] The key-value pairs to cache.
13+
*/
14+
function MapCache(entries) {
15+
var index = -1,
16+
length = entries == null ? 0 : entries.length;
17+
18+
this.clear();
19+
while (++index < length) {
20+
var entry = entries[index];
21+
this.set(entry[0], entry[1]);
22+
}
23+
}
24+
25+
// Add methods to `MapCache`.
26+
MapCache.prototype.clear = mapCacheClear;
27+
MapCache.prototype['delete'] = mapCacheDelete;
28+
MapCache.prototype.get = mapCacheGet;
29+
MapCache.prototype.has = mapCacheHas;
30+
MapCache.prototype.set = mapCacheSet;
31+
32+
module.exports = MapCache;
Collapse file

‎npm-package/_Promise.js‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var getNative = require('./_getNative'),
2+
root = require('./_root');
3+
4+
/* Built-in method references that are verified to be native. */
5+
var Promise = getNative(root, 'Promise');
6+
7+
module.exports = Promise;
Collapse file

‎npm-package/_Set.js‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var getNative = require('./_getNative'),
2+
root = require('./_root');
3+
4+
/* Built-in method references that are verified to be native. */
5+
var Set = getNative(root, 'Set');
6+
7+
module.exports = Set;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.