Skip to content

Commit 2e1c0f2

Browse files
committed
Add npm-package
1 parent 1b6c282 commit 2e1c0f2

File tree

1,046 files changed

+40050
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,046 files changed

+40050
-0
lines changed

npm-package/README.md

Lines changed: 39 additions & 0 deletions
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.

npm-package/_DataView.js

Lines 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;

npm-package/_Hash.js

Lines 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;

npm-package/_LazyWrapper.js

Lines 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;

npm-package/_ListCache.js

Lines 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;

npm-package/_LodashWrapper.js

Lines 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;

npm-package/_Map.js

Lines 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;

npm-package/_MapCache.js

Lines 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;

npm-package/_Promise.js

Lines 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;

npm-package/_Set.js

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy