Skip to content

convert, getIdentity, getSchema, cloneKeySort

Compare
Choose a tag to compare
@justinbmeyer justinbmeyer released this 14 May 21:21
· 113 commits to master since this release

This adds 4 methods:

  • .convert(value, Type) - convert one value to another
  • .getIdentity( value [, schema]) - get a unique value that represents the value
  • .getSchema( valueOrType ) - get a schema on the object or the type
  • .cloneKeySort( obj ) - return a copy of obj with its properties sorted