Home Reference Source

References

Class Summary

Static Public Class Summary
public

Validator is a generic & re-usable schema validation system.

Function Summary

Static Public Function Summary
public

contains(object: Object, key: String): Boolean

A simple function to safely check if an object has a given property

public

dereference(schema: Array | Object, resolve: Object): Object

This function dereferences a schema set into one logical schema in accordance with the IETF JSON Reference Draft v3 specification:

public

iterate(object: Object, fn: Function)

A method to safely iterate the properties of an object and execute some function for each of them.

public

map(object: Object, fn: Function): Object

An object literal variant of the Array.map function.

public

merge(object: Object, object: Object, overide: Boolean): Object

A function to allowing deep merging of object literals using various strategies.