sort-object-circular

0.1.1 • Public • Published

Usage guide

This guide is for people who want to use sort-object-circular.

Other guides:

Install

npm install sort-object-circular

Usage

import sortObject from 'sort-object-circular'

sortObject({ b: 1, a: 2 })
// { a: 2, b: 1 }

The function:

  • sorts keys recursively,
  • clones object prototypes so you can sort class instances and
  • works for circular structures.

Thanks

This project uses node-package-skeleton as a starting point for package development.

Readme

Keywords

none

Package Sidebar

Install

npm i sort-object-circular

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • mickvangelderen