ut2 1.11.0 → 1.11.1
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/README.md +1 -0
- package/dist/ut2.js +5 -4
- 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/move.js +4 -3
- package/lib/internals/helpers.js +1 -1
- package/lib/move.js +4 -3
- package/package.json +1 -1
- package/types/move.d.ts +4 -5
- package/types/nth.d.ts +6 -4
package/README.md
CHANGED
|
@@ -116,6 +116,7 @@ const debounced = debounce(() => {
|
|
|
116
116
|
- [isEqual](https://caijf.github.io/ut2/module-Language.html#.isEqual) - 深比较。
|
|
117
117
|
- [isError](https://caijf.github.io/ut2/module-Language.html#.isError) - `Error` 对象。
|
|
118
118
|
- [isFinite](https://caijf.github.io/ut2/module-Language.html#.isFinite) - 有限数字。
|
|
119
|
+
- [isFile](https://caijf.github.io/ut2/module-Language.html#.isFile) - `File` 对象。
|
|
119
120
|
- [isFunction](https://caijf.github.io/ut2/module-Language.html#.isFunction) - `Function` 对象。
|
|
120
121
|
- [isInteger](https://caijf.github.io/ut2/module-Language.html#.isInteger) - 整数。
|
|
121
122
|
- [isLength](https://caijf.github.io/ut2/module-Language.html#.isLength) - 有效的类数组长度。
|
package/dist/ut2.js
CHANGED
|
@@ -209,9 +209,10 @@
|
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
function move(
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
function move(array, from, to) {
|
|
213
|
+
var copyArray = array.slice();
|
|
214
|
+
copyArray.splice(to, 0, copyArray.splice(from, 1)[0]);
|
|
215
|
+
return copyArray;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
function isFunction(value) {
|
|
@@ -606,7 +607,7 @@
|
|
|
606
607
|
return value == null || value !== value ? defaultValue : value;
|
|
607
608
|
};
|
|
608
609
|
|
|
609
|
-
var VERSION = "1.11.
|
|
610
|
+
var VERSION = "1.11.1";
|
|
610
611
|
var isBrowser = typeof window !== stringUndefined && isObjectLike(window) && typeof document !== stringUndefined && isObjectLike(document) && window.document === document;
|
|
611
612
|
var supportedArgumentsType = getTag((function () { return arguments; })()) === argumentsTag;
|
|
612
613
|
var FUNC_ERROR_TEXT = 'Expected a function';
|