mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Bump to v3.3.1.
This commit is contained in:
committed by
John-David Dalton
parent
343b869a68
commit
0423d77228
@@ -1,5 +1,5 @@
|
||||
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
|
||||
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# lodash.inrange v3.3.0
|
||||
# lodash.inrange v3.3.1
|
||||
|
||||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.inRange` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
|
||||
|
||||
@@ -17,4 +17,4 @@ In Node.js/io.js:
|
||||
var inRange = require('lodash.inrange');
|
||||
```
|
||||
|
||||
See the [documentation](https://lodash.com/docs#inRange) or [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash.inrange) for more details.
|
||||
See the [documentation](https://lodash.com/docs#inRange) or [package source](https://github.com/lodash/lodash/blob/3.3.1-npm-packages/lodash.inrange) for more details.
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
/**
|
||||
* lodash 3.3.0 (Custom Build) <https://lodash.com/>
|
||||
* lodash 3.3.1 (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <https://lodash.com/license>
|
||||
*/
|
||||
|
||||
/* Native method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMax = Math.max,
|
||||
nativeMin = Math.min;
|
||||
|
||||
/**
|
||||
* Checks if `n` is between `start` and up to but not including, `end`. If
|
||||
* `end` is not specified it defaults to `start` with `start` becoming `0`.
|
||||
* `end` is not specified it is set to `start` with `start` then set to `0`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -46,7 +50,7 @@ function inRange(value, start, end) {
|
||||
} else {
|
||||
end = +end || 0;
|
||||
}
|
||||
return value >= start && value < end;
|
||||
return value >= nativeMin(start, end) && value < nativeMax(start, end);
|
||||
}
|
||||
|
||||
module.exports = inRange;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lodash.inrange",
|
||||
"version": "3.3.0",
|
||||
"version": "3.3.1",
|
||||
"description": "The modern build of lodash’s `_.inRange` as a module.",
|
||||
"homepage": "https://lodash.com/",
|
||||
"icon": "https://lodash.com/icon.svg",
|
||||
|
||||
Reference in New Issue
Block a user