@codegateinc/g-utils
Advanced tools
Comparing version 0.0.20 to 0.0.23
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.is = exports.values = exports.clearObject = exports.fromPairs = exports.toPairs = exports.all = exports.hasElements = exports.hasKeys = exports.always = exports.T = exports.call = exports.ifDefined = exports.isDefined = exports.cond = exports.compose = void 0; | ||
exports.compareFunctions = exports.is = exports.values = exports.clearObject = exports.fromPairs = exports.toPairs = exports.all = exports.hasElements = exports.hasKeys = exports.always = exports.T = exports.call = exports.ifDefined = exports.isDefined = exports.cond = exports.compose = void 0; | ||
@@ -76,2 +76,6 @@ const compose = (...functions) => firstArg => functions.reverse().reduce((acc, fn) => fn(acc), firstArg); | ||
exports.is = is; | ||
exports.is = is; | ||
const compareFunctions = (a, b) => a.toString() === b.toString(); | ||
exports.compareFunctions = compareFunctions; |
@@ -19,2 +19,3 @@ import { CondItem, KeyValuePair } from './src/types' | ||
export function all(...args: Array<boolean>): boolean | ||
export function compareFunctions(a: Function, b: Function): boolean; | ||
} |
@@ -6,3 +6,3 @@ { | ||
"typings": "index.d.ts", | ||
"version": "0.0.20", | ||
"version": "0.0.23", | ||
"main": "dist/index.js", | ||
@@ -9,0 +9,0 @@ "description": "This library is a package of useful functions", |
@@ -40,1 +40,2 @@ ## [![Coverage Status](https://coveralls.io/repos/github/codegateinc/gUtils/badge.svg?branch=master)](https://coveralls.io/github/codegateinc/gUtils?branch=master) | ||
|hasElements |`(subject: any): boolean` |check if given value is array and has got any elemnts | ||
|compareFunctions|`(a: Function, b: Function): boolean` |check if given functions are the same |
@@ -48,1 +48,3 @@ import { KeyValuePair, CondItem } from './types' | ||
export const is = (type: any, subject: any) => subject.constructor === type || subject instanceof type | ||
export const compareFunctions = (a: Function, b: Function) => a.toString() === b.toString() |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22046
30
468
41
1