Function
| Static Public Summary | ||
| public |
AND(v1: *, v2: *) |
|
| public |
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 |
|
|
| public |
traverse(o: *, fn: *, p: *) |
|
| public |
unexpectedFiled(filed: *) |
|
Static Public
public AND(v1: *, v2: *) source
import {AND} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| v1 | * | ||
| v2 | * |
public OPTIONAL(val: *, state: boolean) source
import {OPTIONAL} from '@cesium133/forgjs/src/testFunctions/index.js'The optional validation function
Params:
| Name | Type | Attribute | Description |
| val | * | the value to be tested |
|
| state | boolean | is the value optional |
public OR(v1: *, v2: *) source
import {OR} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| v1 | * | ||
| v2 | * |
public arrayContainsAll(a: *, b: *): boolean source
import {arrayContainsAll} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| a | * | ||
| b | * |
public flattenObject(ob: *): * source
import {flattenObject} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| ob | * |
Return:
| * |
public getErrorFromFunctionOrString(error: *, path: *, value: *): * source
import {getErrorFromFunctionOrString} from '@cesium133/forgjs/src/Rule/util.js'Params:
| Name | Type | Attribute | Description |
| error | * | ||
| path | * | ||
| value | * |
Return:
| * |
public getErrorFromObject(error: *, path: *, value: *, key: *): * source
import {getErrorFromObject} from '@cesium133/forgjs/src/Rule/util.js'Params:
| Name | Type | Attribute | Description |
| error | * | ||
| path | * | ||
| value | * | ||
| key | * |
Return:
| * |
public getValFromPath(p: *, obj: *): * source
import {getValFromPath} from '@cesium133/forgjs/src/Validator/util.js'Params:
| Name | Type | Attribute | Description |
| p | * | ||
| obj | * |
Return:
| * |
public isArray(arr: *) source
import {isArray} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| arr | * |
public isFunction(func: *) source
import {isFunction} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| func | * |
public isInt(val: *) source
import {isInt} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| val | * |
public isObject(obj: *) source
import {isObject} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| obj | * |
public isString(str: *) source
import {isString} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| 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:
| Name | Type | Attribute | Description |
| a | any | first object |
|
| b | any | second object |
public mapFirstArgument(f: *, map: *): * source
import {mapFirstArgument} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| f | * | ||
| map | * |
Return:
| * |
public mergeRule(rule1: *, rule2: *, mapFunction: *): {...rule1: Object, ...mappedCopy: Object, "type": *} source
import {mergeRule} from '@cesium133/forgjs/src/util.js'Params:
| Name | Type | Attribute | Description |
| rule1 | * | ||
| rule2 | * | ||
| mapFunction | * |
public traverse(o: *, fn: *, p: *) source
import {traverse} from '@cesium133/forgjs/src/Validator/util.js'Params:
| Name | Type | Attribute | Description |
| o | * | ||
| fn | * | ||
| p | * |
public unexpectedFiled(filed: *) source
import {unexpectedFiled} from '@cesium133/forgjs/src/const.js'Params:
| Name | Type | Attribute | Description |
| filed | * |
