Nascent Personality Manifestation

    @mikeal/is-circular

    1.0.1 • Public • Published

    is-circular Build Status js-standard-style

    Determines if an object (or array) is circular

    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 @mikeal/is-circular

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • mikeal