-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from finleap-connect/chore/bundle-size
chore: fix issues related to bundle size convert from cjs to esm to enable tree shaking
- Loading branch information
Showing
252 changed files
with
14,887 additions
and
14,878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
"presets": [ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function and(...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { TPrimitive } from "../types/TPrimitive"; | ||
/** | ||
* Takes an expression, and a set of clauses. | ||
* Each clause can take the form of either: | ||
* test-constant result-expr | ||
* (test-constant1 ... test-constantN) result-expr | ||
* The test-constants are not evaluated. They must be compile-time | ||
* literals. If the expression is equal to a | ||
* test-constant, the corresponding result-expr is returned. A single | ||
* default expression can follow the clauses, and its value will be | ||
* returned if no clause matches. If no default expression is provided | ||
* and no clause matches, undefined is returned. | ||
* All manner of constant expressions are acceptable in `cases`, | ||
* including numbers, strings, booleans, and Symbols. The | ||
* test-constants need not be all of the same type. | ||
*/ | ||
export declare function cases(expression: TPrimitive, ...rest: any[]): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare const ELSE = "else"; | ||
export declare function cond(...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Takes a binary predicate, an expression, and a set of clauses. | ||
* Each clause can take the form of either: | ||
* test-expr, result-expr | ||
* test-expr, result-fn | ||
* For each clause, (pred test-expr expr) is evaluated. If it returns | ||
* logical true, the clause is a match. If a binary clause matches, the | ||
* result-expr is returned, if a ternary clause matches, its result-fn, | ||
* which must be a unary function, is called with the result of the | ||
* predicate as its argument, the result of that call being the return | ||
* value of condp. A single default expression can follow the clauses, | ||
* and its value will be returned if no clause matches. If no default | ||
* expression is provided and no clause matches, undefined is returned. | ||
* @param {function} pred | ||
* @param {*} expr | ||
* @param {*} rest | ||
* @returns {*} | ||
*/ | ||
export declare function condp(pred: any, expr: any, ...rest: any[]): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param rest | ||
* @returns {function(...[*]): boolean} | ||
*/ | ||
export declare function everyPred(...rest: any[]): (...args: any[]) => boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Returns either the value or an empty Array | ||
* @param {boolean} pred | ||
* @param {*} value | ||
* @returns {*|*[]} | ||
*/ | ||
export declare function ifArray(pred: boolean, value: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @param {boolean | Function} condition | ||
* @param {*} consequent | ||
* @returns {*|string} | ||
*/ | ||
export declare function ifBlank(condition: any, consequent: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @param {boolean | Function} condition | ||
* @param {string} className | ||
* @returns {*|string} | ||
*/ | ||
export declare function ifClass(condition: any, className: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @param condition | ||
* @param expression | ||
* @returns {*|undefined} | ||
*/ | ||
export declare function ifNot(condition: any, expression: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @param {boolean | Function} condition | ||
* @param {{}} consequent | ||
* @returns {*|string} | ||
*/ | ||
export declare function ifObj(condition: any, consequent: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @param value | ||
* @param ifTrue | ||
* @param ifFalse | ||
* @returns {*} | ||
*/ | ||
export declare function ifSome(value: any, ifTrue: any, ifFalse: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function ifYes(condition: any, expression: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function iff(condition: any, ifTrue: any, ifFalse: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export { and } from "./and"; | ||
export { cases } from "./cases"; | ||
export { cond, ELSE } from "./cond"; | ||
export { condp } from "./condp"; | ||
export { everyPred } from "./every-pred"; | ||
export { ifArray } from "./if-array"; | ||
export { ifBlank } from "./if-blank"; | ||
export { ifClass } from "./if-class"; | ||
export { ifNot } from "./if-not"; | ||
export { ifObj } from "./if-obj"; | ||
export { ifSome } from "./if-some"; | ||
export { ifYes } from "./if-yes"; | ||
export { iff } from "./iff"; | ||
export { or } from "./or"; | ||
export { some$ } from "./some$"; | ||
export { when } from "./when"; | ||
export { whenFirst } from "./when-first"; | ||
export { whenNot } from "./when-not"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function _returnLast(body: Array<any>, arg?: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare type IsBoolean = any | ((arg: any) => any); | ||
export declare function runFnOrGetValue(ifTrue: IsBoolean, value?: any): any; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function or(...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param expression | ||
* @returns {boolean} | ||
*/ | ||
export declare function some$(expression: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Obtains the first item in a set. If that item is truthy, then the body is run and the last | ||
* computed value or expression is returned. The first item in the list is passed as an argument | ||
* to any functions in the function body. | ||
* Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once | ||
*/ | ||
export declare function whenFirst(set: Array<any>, ...rest: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param condition | ||
* @param rest | ||
*/ | ||
export declare function whenNot(condition: any, ...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param condition | ||
* @param rest | ||
*/ | ||
export declare function when(condition: any, ...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export declare enum BaseTypes { | ||
Function = "function", | ||
String = "string", | ||
Object = "object", | ||
Array = "array", | ||
Map = "map", | ||
Set = "set", | ||
Boolean = "boolean", | ||
Number = "number", | ||
Null = "null", | ||
Undefined = "undefined", | ||
Promise = "promise", | ||
Date = "date", | ||
Symbol = "symbol" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function apply(fn: Function, ...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function comp(...fns: Array<Function>): (...args: Array<any>) => any[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function complement(fn: any): (...rest: any[]) => boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const constantly: (value: any) => () => any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare type FnType = (args?: Array<any>) => any; | ||
export declare function fNil(fn: FnType, ...template: Array<any>): FnType; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function identity(value: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export { apply } from "./apply"; | ||
export { comp } from "./comp"; | ||
export { complement } from "./complement"; | ||
export { constantly } from "./constantly"; | ||
export { fNil } from "./f-nil"; | ||
export { identity } from "./identity"; | ||
export { juxt } from "./juxt"; | ||
export { memoize } from "./memoize"; | ||
export { partial } from "./partial"; | ||
export { repeatedly } from "./repeatedly"; | ||
export { tf } from "./tf"; | ||
export { trampoline } from "./trampoline"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param {*} rest | ||
* @returns {function(...[*]=): unknown} | ||
*/ | ||
export declare function juxt(...rest: any[]): (...args: any[]) => any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare type Function = (...args: any) => any; | ||
declare type ResolverFn = (...args: any) => string; | ||
export declare function memoize(fn: Function, cacheKey?: ResolverFn): any; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function partial(fn: Function, ...rest: any[]): (...args: any[]) => any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function repeatedly(fn: Function, n: number): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* Used to flatten nested function calls. `tf` allows value transformations to be | ||
* expressed as “pipelines” of values, similar to Unix pipes. | ||
*/ | ||
export declare function tf(val: any, ...fns: Function[]): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* `trampoline` can be used to convert recursive algorithms | ||
* without stack consumption. Calls `fn` with supplied args, if | ||
* any. If `fn` returns a function, calls that function with no | ||
* arguments, and continues to repeat, until the return value is | ||
* not a function, then returns that non-fn value. Note that if | ||
* you want to return a function as a final value, you must wrap | ||
* it in some data structure and unpack it after `trampoline` | ||
* returns. | ||
* @param {Function} fn | ||
* @param {*} rest | ||
* @returns {function(...[*]): *} | ||
*/ | ||
export declare function trampoline(fn: any, ...rest: any[]): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function alike(...rest: Array<any>): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function array$(item: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function arrayLike$(set: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function arraySet$(set: Array<any>): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Whether a value is Boolean | ||
* @param value | ||
* @returns {boolean|*} | ||
*/ | ||
export declare function boolean$(value: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare const cloneDeepNoCircularRefs: (o: any) => any; | ||
export declare const cloneDeep: (o: any) => any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function collection$(item: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Returns a negative number, zero, or a positive number | ||
* when x is logically 'less than', 'equal to', or 'greater than' | ||
* y. Works with number, string, and boolean values---as well as Arrays | ||
* of those values. Compares numbers and Arrays in a type-independent | ||
* manner; however the types compared must always match. | ||
* | ||
* When comparing strings, a delta in a string returns the distance between | ||
* the first two letters that don't match. See examples below for deta | ||
* @param left | ||
* @param right | ||
*/ | ||
export declare function compare(left: any, right: any): number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function deepEq(...rest: Array<any>): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { TAnyObject } from "../types/t-any-object"; | ||
/** | ||
* Recursively compares a and b, returning a tuple of | ||
* [things-only-in-a things-only-in-b things-in-both]. | ||
* Comparison rules: | ||
* * For equal a and b, return [nil nil a]. | ||
* * Maps are subdiffed where keys match and values differ. | ||
* * Sets are never subdiffed. | ||
* * All sequential things are treated as associative collections | ||
* by their indexes, with results returned as vectors. | ||
* * Everything else (including strings!) is treated as | ||
* an atom and compared for equality. | ||
* @param a | ||
* @param b | ||
*/ | ||
export declare function diff(a: TAnyObject, b: TAnyObject): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { TPrimitive } from "../types/TPrimitive"; | ||
export declare function distinct$(...rest: Array<TPrimitive>): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function doWork(...rest: Array<any>): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function dotimes(times: number, fn: Function): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { TCollection } from "../types/t-collection"; | ||
/** | ||
* Returns whether an Object, an Array, a Set, or a Map is empty. | ||
* Modified slightly from Lodash | ||
* @param value | ||
* @returns {boolean} | ||
*/ | ||
export declare function empty$(value: null | undefined | TCollection): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function empty(set: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function eq(...rest: Array<any>): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function false$(arg: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function function$(value: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param {[]} set | ||
* @returns {Boolean} | ||
*/ | ||
export declare function functionSet$(set: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export { alike } from "./alike"; | ||
export { array$ } from "./array$"; | ||
export { arrayLike$ } from "./array-like$"; | ||
export { arraySet$ } from "./array-set$"; | ||
export { boolean$ } from "./boolean$"; | ||
export { cloneDeep } from "./clone-deep"; | ||
export { cloneDeepNoCircularRefs } from "./clone-deep"; | ||
export { collection$ } from "./collection$"; | ||
export { compare } from "./compare"; | ||
export { deepEq } from "./deep-eq"; | ||
export { diff } from "./diff"; | ||
export { distinct$ } from "../generic/distinct$"; | ||
export { doWork } from "./do-work"; | ||
export { dotimes } from "./dotimes"; | ||
export { empty$ } from "./empty$"; | ||
export { empty } from "./empty"; | ||
export { eq } from "./eq"; | ||
export { false$ } from "./false$"; | ||
export { function$ } from "./function$"; | ||
export { functionSet$ } from "./function-set$"; | ||
export { log } from "./log"; | ||
export { maxKey } from "./max-key"; | ||
export { not } from "./not"; | ||
export { notEmpty$ } from "./not-empty$"; | ||
export { notEmpty } from "./not-empty"; | ||
export { notEq } from "./not-eq"; | ||
export { number$ } from "./number$"; | ||
export { numberSet$ } from "./number-set$"; | ||
export { numeric$ } from "./numeric$"; | ||
export { object$ } from "./object$"; | ||
export { objectLike$ } from "./object-like$"; | ||
export { objectSet$ } from "./object-set$"; | ||
export { orEq } from "./or-eq"; | ||
export { rand } from "./rand"; | ||
export { regExp$ } from "./reg-exp$"; | ||
export { string$ } from "./string$"; | ||
export { stringSet$ } from "./string-set$"; | ||
export { true$ } from "./true$"; | ||
export { undefined$ } from "./undefined$"; | ||
export { void$ } from "./void$"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function _eq(args: any, comparator: Function): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function isMultiDimArr(arr: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare type TypeFn = (arg?: any) => boolean; | ||
export declare function typedSet$(set: Array<any>, fn: TypeFn): boolean; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function log(...rest: any): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function maxKey(fn: any, ...rest: any[]): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @param item | ||
* @returns {boolean} | ||
*/ | ||
export declare function notEmpty$(item: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { TCollection } from "../types/t-collection"; | ||
export declare function notEmpty(set: TCollection): string | object | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function notEq(...rest: Array<any>): boolean; |
Oops, something went wrong.