ut2 1.9.4 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ut2.js +6 -6
- package/dist/ut2.js.map +1 -1
- package/dist/ut2.min.js +1 -1
- package/dist/ut2.min.js.map +1 -1
- package/es/internals/helpers.js +1 -1
- package/es/invert.js +2 -2
- package/es/isTypedArray.js +2 -3
- package/es/nth.js +2 -2
- package/lib/internals/helpers.js +1 -1
- package/lib/invert.js +2 -2
- package/lib/isTypedArray.js +2 -3
- package/lib/nth.js +2 -2
- package/package.json +1 -1
- package/types/nth.d.ts +5 -1
package/dist/ut2.js
CHANGED
|
@@ -223,14 +223,14 @@
|
|
|
223
223
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
function
|
|
226
|
+
var nth = function (array, n) {
|
|
227
227
|
if (n === void 0) { n = 0; }
|
|
228
228
|
if (!isArrayLike(array)) {
|
|
229
229
|
return nativeUndefined;
|
|
230
230
|
}
|
|
231
231
|
n += n < 0 ? array.length : 0;
|
|
232
232
|
return array[n];
|
|
233
|
-
}
|
|
233
|
+
};
|
|
234
234
|
|
|
235
235
|
var MAX_VALUE = 1.7976931348623157e308;
|
|
236
236
|
function toFinite(value) {
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
return value == null || value !== value ? defaultValue : value;
|
|
600
600
|
};
|
|
601
601
|
|
|
602
|
-
var VERSION = "1.9.
|
|
602
|
+
var VERSION = "1.9.5";
|
|
603
603
|
var supportedArgumentsType = getTag((function () { return arguments; })()) === argumentsTag;
|
|
604
604
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
605
605
|
function toSource(func) {
|
|
@@ -954,7 +954,7 @@
|
|
|
954
954
|
if (nodeIsTypedArray) {
|
|
955
955
|
return nodeIsTypedArray(value);
|
|
956
956
|
}
|
|
957
|
-
if (
|
|
957
|
+
if (isArrayLikeObject(value)) {
|
|
958
958
|
return typedArrayPattern.test(getTag(value));
|
|
959
959
|
}
|
|
960
960
|
return false;
|
|
@@ -1417,8 +1417,8 @@
|
|
|
1417
1417
|
_keys.forEach(function (key) {
|
|
1418
1418
|
var value = object[key];
|
|
1419
1419
|
if (predicate(value, key)) {
|
|
1420
|
-
var
|
|
1421
|
-
result[
|
|
1420
|
+
var valueProp = value != null && typeof value.toString != 'function' ? objectProtoToString.call(value) : value;
|
|
1421
|
+
result[valueProp] = key;
|
|
1422
1422
|
}
|
|
1423
1423
|
else {
|
|
1424
1424
|
result[key] = value;
|