Socket
Socket
Sign inDemoInstall

kindof

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

2.0.0

Diff

Changelog

Source

2.0.0 (May 25, 2015)

  • Removes support for boxed objects (new Boolean, new Number, new String) and considers them just as objects.

    Boxed objects tend to be very error prone and it's best you stick to primitives only. The following is a small example of problems with boxed objects:

    new String("a") == new String("a") // => false
    new Boolean(true) == new Boolean(true) // => false
    Boolean(new Boolean(false)) // => true
    !!(new Boolean(false)) // => true
    

    You can convert boxed objects to primitives by calling their valueOf function:

    new String("Hello").valueOf() // => "Hello"
    
  • Adds support for Symbol.

moll
published 1.0.0 •

moll
published 0.1.337 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc