Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

typewiselite

dominictarr143.3kMIT1.0.0

comparison for sensible javascript objects

sort, order, collation, leveldb, indexeddb, couchdb

readme

typewise

typewiselite

compare sensible js data types

this is a fork of typewise

example


var compare = require('typewiselite')

ARRAY.sort(compare)

ordering

  • null
  • boolean (false < true)
  • numbers
  • buffers
  • strings
  • object (!will throw)
  • arrays
  • undefined

ordering is the same as bytewise except there is no support for {} objects.

License

MIT