npm

Need private packages and team management tools?Check out npm Orgs. »

is-circular

1.0.2 • Public • Published

is-circular Build Status js-standard-style

High-performance circular reference check for objects (or arrays) w/ no dependencies

Installation

npm install is-circular

Usage

var isCircular = require('is-circular')
 
var circularObj = {
  foo: 1,
  bar: 2
}
circularObj.qux = circularObj
 
isCircular(circularObj) // true
 
var obj = {
  foo: 1,
  bar: 2,
  qux: 3
}
 
isCircular(obj) // false

License

MIT

install

npm i is-circular

Downloadsweekly downloads

14,247

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability