typewiselite

comparison for sensible javascript objects

typewise

typewiselite

compare sensible js data types

this is a fork of typewise

 
var compare = require('typewiselite')
 
ARRAY.sort(compare)
 
  • null
  • boolean (false < true)
  • numbers
  • buffers
  • strings
  • object (!will throw)
  • arrays

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

MIT