mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6f9660ab0 |
@@ -1,4 +1,4 @@
|
|||||||
# lodash v3.9.0
|
# lodash v3.9.1
|
||||||
|
|
||||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules.
|
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules.
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ var array = require('lodash/array');
|
|||||||
var chunk = require('lodash/array/chunk');
|
var chunk = require('lodash/array/chunk');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/tree/3.9.0-npm) for more details.
|
See the [package source](https://github.com/lodash/lodash/tree/3.9.1-npm) for more details.
|
||||||
|
|
||||||
**Note:**<br>
|
**Note:**<br>
|
||||||
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.<br>
|
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.<br>
|
||||||
@@ -39,8 +39,8 @@ Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash b
|
|||||||
lodash is also available in a variety of other builds & module formats.
|
lodash is also available in a variety of other builds & module formats.
|
||||||
|
|
||||||
* npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds
|
* npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds
|
||||||
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.9.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.9.0-amd) builds
|
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.9.1-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.9.1-amd) builds
|
||||||
* ES modules for the [modern](https://github.com/lodash/lodash/tree/3.9.0-es) build
|
* ES modules for the [modern](https://github.com/lodash/lodash/tree/3.9.1-es) build
|
||||||
|
|
||||||
## Further Reading
|
## Further Reading
|
||||||
|
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* lodash 3.9.0 (Custom Build) <https://lodash.com/>
|
* lodash 3.9.1 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modern -d -o ./index.js`
|
* Build: `lodash modern -d -o ./index.js`
|
||||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
var undefined;
|
var undefined;
|
||||||
|
|
||||||
/** Used as the semantic version number. */
|
/** Used as the semantic version number. */
|
||||||
var VERSION = '3.9.0';
|
var VERSION = '3.9.1';
|
||||||
|
|
||||||
/** Used to compose bitmasks for wrapper metadata. */
|
/** Used to compose bitmasks for wrapper metadata. */
|
||||||
var BIND_FLAG = 1,
|
var BIND_FLAG = 1,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ var cachePush = require('./cachePush'),
|
|||||||
getNative = require('./getNative');
|
getNative = require('./getNative');
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method references. */
|
||||||
var Set = getNative(root, 'Set');
|
var Set = getNative(global, 'Set');
|
||||||
|
|
||||||
/* Native method references for those with the same name as other `lodash` methods. */
|
/* Native method references for those with the same name as other `lodash` methods. */
|
||||||
var nativeCreate = getNative(Object, 'create');
|
var nativeCreate = getNative(Object, 'create');
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ var constant = require('../utility/constant'),
|
|||||||
getNative = require('./getNative');
|
getNative = require('./getNative');
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method references. */
|
||||||
var ArrayBuffer = getNative(root, 'ArrayBuffer'),
|
var ArrayBuffer = getNative(global, 'ArrayBuffer'),
|
||||||
bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'),
|
bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'),
|
||||||
floor = Math.floor,
|
floor = Math.floor,
|
||||||
Uint8Array = getNative(root, 'Uint8Array');
|
Uint8Array = getNative(global, 'Uint8Array');
|
||||||
|
|
||||||
/** Used to clone array buffers. */
|
/** Used to clone array buffers. */
|
||||||
var Float64Array = (function() {
|
var Float64Array = (function() {
|
||||||
@@ -13,7 +13,7 @@ var Float64Array = (function() {
|
|||||||
// where the array buffer's `byteLength` is not a multiple of the typed
|
// where the array buffer's `byteLength` is not a multiple of the typed
|
||||||
// array's `BYTES_PER_ELEMENT`.
|
// array's `BYTES_PER_ELEMENT`.
|
||||||
try {
|
try {
|
||||||
var func = getNative(root, 'Float64Array'),
|
var func = getNative(global, 'Float64Array'),
|
||||||
result = new func(new ArrayBuffer(10), 0, 1) && func;
|
result = new func(new ArrayBuffer(10), 0, 1) && func;
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
return result || null;
|
return result || null;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ var SetCache = require('./SetCache'),
|
|||||||
getNative = require('./getNative');
|
getNative = require('./getNative');
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method references. */
|
||||||
var Set = getNative(root, 'Set');
|
var Set = getNative(global, 'Set');
|
||||||
|
|
||||||
/* Native method references for those with the same name as other `lodash` methods. */
|
/* Native method references for those with the same name as other `lodash` methods. */
|
||||||
var nativeCreate = getNative(Object, 'create');
|
var nativeCreate = getNative(Object, 'create');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
var getNative = require('./getNative');
|
var getNative = require('./getNative');
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method references. */
|
||||||
var WeakMap = getNative(root, 'WeakMap');
|
var WeakMap = getNative(global, 'WeakMap');
|
||||||
|
|
||||||
/** Used to store function metadata. */
|
/** Used to store function metadata. */
|
||||||
var metaMap = WeakMap && new WeakMap;
|
var metaMap = WeakMap && new WeakMap;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var objectProto = Object.prototype;
|
|||||||
var objToString = objectProto.toString;
|
var objToString = objectProto.toString;
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method references. */
|
||||||
var Uint8Array = getNative(root, 'Uint8Array');
|
var Uint8Array = getNative(global, 'Uint8Array');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is classified as a `Function` object.
|
* Checks if `value` is classified as a `Function` object.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash",
|
"name": "lodash",
|
||||||
"version": "3.9.0",
|
"version": "3.9.1",
|
||||||
"description": "The modern build of lodash modular utilities.",
|
"description": "The modern build of lodash modular utilities.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
Reference in New Issue
Block a user