Home Reference Source Test

Function

Static Public Summary
public

AND(v1: *, v2: *)

public

OPTIONAL(val: *, state: boolean)

The optional validation function

public

OR(v1: *, v2: *)

public

arrayContainsAll(a: *, b: *): boolean

public

flattenObject(ob: *): *

public

getErrorFromFunctionOrString(error: *, path: *, value: *): *

public

getErrorFromObject(error: *, path: *, value: *, key: *): *

public

getValFromPath(p: *, obj: *): *

public

isArray(arr: *)

public

isFunction(func: *)

public

isInt(val: *)

public

isObject(obj: *)

public

isString(str: *)

public

looseEqual(a: any, b: any): boolean

Checks if two bojects are loosly equal

public

mapFirstArgument(f: *, map: *): *

public

mergeRule(rule1: *, rule2: *, mapFunction: *): {...rule1: Object, ...mappedCopy: Object, "type": *}

public

traverse(o: *, fn: *, p: *)

public

unexpectedFiled(filed: *)

Static Public

public AND(v1: *, v2: *) source

import {AND} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
v1 *
v2 *

public OPTIONAL(val: *, state: boolean) source

The optional validation function

Params:

NameTypeAttributeDescription
val *

the value to be tested

state boolean

is the value optional

public OR(v1: *, v2: *) source

Params:

NameTypeAttributeDescription
v1 *
v2 *

public arrayContainsAll(a: *, b: *): boolean source

import {arrayContainsAll} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
a *
b *

Return:

boolean

public flattenObject(ob: *): * source

import {flattenObject} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
ob *

Return:

*

public getErrorFromFunctionOrString(error: *, path: *, value: *): * source

import {getErrorFromFunctionOrString} from '@cesium133/forgjs/src/Rule/util.js'

Params:

NameTypeAttributeDescription
error *
path *
value *

Return:

*

public getErrorFromObject(error: *, path: *, value: *, key: *): * source

import {getErrorFromObject} from '@cesium133/forgjs/src/Rule/util.js'

Params:

NameTypeAttributeDescription
error *
path *
value *
key *

Return:

*

public getValFromPath(p: *, obj: *): * source

import {getValFromPath} from '@cesium133/forgjs/src/Validator/util.js'

Params:

NameTypeAttributeDescription
p *
obj *

Return:

*

public isArray(arr: *) source

import {isArray} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
arr *

public isFunction(func: *) source

import {isFunction} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
func *

public isInt(val: *) source

import {isInt} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
val *

public isObject(obj: *) source

import {isObject} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
obj *

public isString(str: *) source

import {isString} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
str *

public looseEqual(a: any, b: any): boolean source

import {looseEqual} from '@cesium133/forgjs/src/util.js'

Checks if two bojects are loosly equal

Params:

NameTypeAttributeDescription
a any

first object

b any

second object

Return:

boolean

public mapFirstArgument(f: *, map: *): * source

import {mapFirstArgument} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
f *
map *

Return:

*

public mergeRule(rule1: *, rule2: *, mapFunction: *): {...rule1: Object, ...mappedCopy: Object, "type": *} source

import {mergeRule} from '@cesium133/forgjs/src/util.js'

Params:

NameTypeAttributeDescription
rule1 *
rule2 *
mapFunction *

Return:

{...rule1: Object, ...mappedCopy: Object, "type": *}

public traverse(o: *, fn: *, p: *) source

Params:

NameTypeAttributeDescription
o *
fn *
p *

public unexpectedFiled(filed: *) source

import {unexpectedFiled} from '@cesium133/forgjs/src/const.js'

Params:

NameTypeAttributeDescription
filed *