Namespace: util

util

Basic Crisp functions
Source:
Tutorials:

Namespaces

control

Members

(private, static) regTypeTrim :external:RegExp

Type:
Source:
Example
'[object String]'.replace( regTypeTrim, '$1' ); // 'String'
 toType.call('a').replace( regTypeTrim, '$1' ); // 'String'

(private, static) toTypeString :external:Object#toString

Type:
Source:
Example
toType.call('a') // [object String]

Methods

(private, static) utilTickCall(callback, opt)

Parameters:
Name Type Description
callback util.utilTickCallback
opt AnyItem
Properties
Name Type Attributes Default Description
args AnyItem <optional>
opt Arguments for util.utilTickCallback
Deprecated:
  • Yes
Source:
See:
Examples
utilTickCall( callback, self, opt );

async

setTimeout( utilTickCall, 0, callback, self, opt );

Type Definitions

(private) utilTickCallback(args)

This:
Parameters:
Name Type Description
args external:Array.<AnyItem>
Source:
See:
Example
callback.apply( self, args );

util

Namespaces

control

Members

(private, static) regTypeTrim :external:RegExp

Type:
Source:
Example
'[object String]'.replace( regTypeTrim, '$1' ); // 'String'
 toType.call('a').replace( regTypeTrim, '$1' ); // 'String'

(private, static) toTypeString :external:Object#toString

Type:
Source:
Example
toType.call('a') // [object String]

Methods

(private, static) utilTickCall(callback, opt)

Parameters:
Name Type Description
callback util.utilTickCallback
opt AnyItem
Properties
Name Type Attributes Default Description
args AnyItem <optional>
opt Arguments for util.utilTickCallback
Deprecated:
  • Yes
Source:
See:
Examples
utilTickCall( callback, self, opt );

async

setTimeout( utilTickCall, 0, callback, self, opt );

Type Definitions

(private) utilTickCallback(args)

This:
Parameters:
Name Type Description
args external:Array.<AnyItem>
Source:
See:
Example
callback.apply( self, args );