ut2 1.4.0 → 1.4.2

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 CHANGED
@@ -102,6 +102,7 @@ const debounced = debounce(() => {
102
102
  - isInteger - 整数。
103
103
  - isLength - 有效的类数组长度。
104
104
  - isMap - `Map` 对象。
105
+ - isMatch - 普通对象部分匹配的深比较。
105
106
  - isNaN - `NaN` 。
106
107
  - isNil - `undefined` 或 `null` 。
107
108
  - isNull - `null` 。
package/dist/ut2.js CHANGED
@@ -285,13 +285,10 @@
285
285
  var numberIsSafeInteger = Number.isSafeInteger;
286
286
  var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
287
287
  var arrayAt = arrayProto.at;
288
- var VERSION = "1.4.0";
288
+ var VERSION = "1.4.2";
289
289
 
290
290
  function isFunction(value) {
291
- if (!isObject(value)) {
292
- return false;
293
- }
294
- return checkTypes(value, functionTags);
291
+ return typeof value === 'function' || checkTypes(value, functionTags);
295
292
  }
296
293
 
297
294
  function isLength(value) {