ut2 1.4.1 → 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.
@@ -8,6 +8,6 @@ var numberIsInteger = Number.isInteger;
8
8
  var numberIsSafeInteger = Number.isSafeInteger;
9
9
  var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
10
10
  var arrayAt = arrayProto.at;
11
- var VERSION = "1.4.1";
11
+ var VERSION = "1.4.2";
12
12
 
13
13
  export { FUNC_ERROR_TEXT, VERSION, arrayAt, numberIsFinite, numberIsInteger, numberIsSafeInteger, objectGetOwnPropertySymbols, supportedArgumentsType };
package/es/isFunction.js CHANGED
@@ -1,12 +1,8 @@
1
1
  import { checkTypes } from './internals/checkType.js';
2
2
  import { functionTags } from './internals/native.js';
3
- import isObject from './isObject.js';
4
3
 
5
4
  function isFunction(value) {
6
- if (!isObject(value)) {
7
- return false;
8
- }
9
- return checkTypes(value, functionTags);
5
+ return typeof value === 'function' || checkTypes(value, functionTags);
10
6
  }
11
7
 
12
8
  export { isFunction as default };
@@ -10,4 +10,4 @@ exports.numberIsInteger = Number.isInteger;
10
10
  exports.numberIsSafeInteger = Number.isSafeInteger;
11
11
  exports.objectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
12
12
  exports.arrayAt = native.arrayProto.at;
13
- exports.VERSION = "1.4.1";
13
+ exports.VERSION = "1.4.2";
package/lib/isFunction.js CHANGED
@@ -2,13 +2,9 @@
2
2
 
3
3
  var checkType = require('./internals/checkType.js');
4
4
  var native = require('./internals/native.js');
5
- var isObject = require('./isObject.js');
6
5
 
7
6
  function isFunction(value) {
8
- if (!isObject(value)) {
9
- return false;
10
- }
11
- return checkType.checkTypes(value, native.functionTags);
7
+ return typeof value === 'function' || checkType.checkTypes(value, native.functionTags);
12
8
  }
13
9
 
14
10
  module.exports = isFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ut2",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "author": "caijf",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",