@injex/stdlib
Advanced tools
Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7
export declare function toCamelCase(str: string): string; | ||
export declare function isFunction(predicate: any): boolean; | ||
export declare function isPromise(predicate: any): boolean; | ||
export declare function getConstructorName(instance: any): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getConstructorName = exports.isFunction = exports.toCamelCase = void 0; | ||
exports.getConstructorName = exports.isPromise = exports.isFunction = exports.toCamelCase = void 0; | ||
function toCamelCase(str) { | ||
@@ -12,2 +12,6 @@ return str[0].toLowerCase() + str.slice(1); | ||
exports.isFunction = isFunction; | ||
function isPromise(predicate) { | ||
return !!predicate && typeof predicate === "object" && isFunction(predicate.then) && isFunction(predicate.catch); | ||
} | ||
exports.isPromise = isPromise; | ||
function getConstructorName(instance) { | ||
@@ -14,0 +18,0 @@ return (instance && instance.constructor && instance.constructor.name); |
{ | ||
"name": "@injex/stdlib", | ||
"version": "2.0.0-alpha.6", | ||
"version": "2.0.0-alpha.7", | ||
"description": "", | ||
@@ -48,3 +48,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "2bc7bf1fe723764bbc83c4425e202dca101ec87a" | ||
"gitHead": "a8b5803004122e95f1fd4d4b7c34c7f78511268d" | ||
} |
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
18745
307