Skip to content

Instantly share code, notes, and snippets.

@abinavseelan
Last active September 2, 2017 07:02
Show Gist options
  • Select an option

  • Save abinavseelan/7c18d8d217aea981e99d3f089adfb520 to your computer and use it in GitHub Desktop.

Select an option

Save abinavseelan/7c18d8d217aea981e99d3f089adfb520 to your computer and use it in GitHub Desktop.
Medium - The Curious Case of Null >= 0 - ToPrimitive Conversion table
Input Type Result
Undefined No Conversion
Null No Conversion
Boolean No Conversion
Number No Conversion
String No Conversion
Object Return a default value for the Object. The default value of an object is retrieved by calling the internal [[DefaultValue]] method of the object, passing the optional hint PreferredType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment