Namespace: utils

utils

Utility methods used by JSData.

Details
Type Source
Object utils.js, line 1
Example
import {utils} from 'js-data'
console.log(utils.isString('foo')) // true

Members


<static> addHiddenPropsToTarget

Define hidden (non-enumerable), writable properties on target from the provided props.

Details
Source
utils.js, line 167

<static> Promise

Reference to the Promise constructor used by JSData. Defaults to window.Promise or global.Promise.

Details
Type Since Source
Function 3.0.0 utils.js, line 68
Example

Make JSData use a different `Promise` constructor

import Promise from 'bluebird'
import {utils} from 'js-data'
utils.Promise = Promise

Methods


<static> diffObjects(a, b)

Method parameters:
Name Type Description
a Object

Base object.

b Object

Comparison object.

Return value:
Type Description
Object

Diff.

Details
Source
utils.js, line 340

<static> equal()

TODO

Details
Source
utils.js, line 380

<static> err()

TODO

Details
Source
utils.js, line 387