@hi-ui/type-assertion
Advanced tools
Comparing version 4.0.0-alpha.5 to 4.0.0-alpha.6
@@ -62,5 +62,14 @@ /** @LICENSE | ||
}; | ||
/** | ||
* Assert is function | ||
*/ | ||
var isFunction = function isFunction(arg) { | ||
return typeof arg === 'function'; | ||
}; | ||
exports.isArray = isArray; | ||
exports.isArrayNonEmpty = isArrayNonEmpty; | ||
exports.isFunction = isFunction; | ||
exports.isNumeric = isNumeric; | ||
@@ -67,0 +76,0 @@ exports.isObject = isObject; |
@@ -57,4 +57,12 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
}; | ||
/** | ||
* Assert is function | ||
*/ | ||
export { isArray, isArrayNonEmpty, isNumeric, isObject, isPromise }; | ||
var isFunction = function isFunction(arg) { | ||
return typeof arg === 'function'; | ||
}; | ||
export { isArray, isArrayNonEmpty, isFunction, isNumeric, isObject, isPromise }; | ||
//# sourceMappingURL=index.js.map |
@@ -24,1 +24,5 @@ export declare type Dict<T = any> = Record<string, T>; | ||
export declare const isNumeric: (arg: unknown) => arg is string | number; | ||
/** | ||
* Assert is function | ||
*/ | ||
export declare const isFunction: <T extends Function = Function>(arg: any) => arg is T; |
{ | ||
"name": "@hi-ui/type-assertion", | ||
"version": "4.0.0-alpha.5", | ||
"version": "4.0.0-alpha.6", | ||
"description": "A sub-package for @hi-ui/utils.", | ||
@@ -48,3 +48,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "d2ea256c3b3726334a2091eba1de7321ed8d36e3" | ||
"gitHead": "dd5e5cb7136a263b75eecb08a2f2e7ff3a854bbc" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8224
142