2ality.com/2011/04/javascript-converting-any-value-to.html

Preview meta tags from the 2ality.com website.

Linked Hostnames

7
  • General Meta Tags

    6
    • title
      JavaScript: converting any value to an object
    • charset
      utf-8
    • viewport
      width=device-width
    • description
      This post is about converting between primitive values and wrapper objects [1]. Thankfully, one is usually not faced with this kind of task in JavaScript. The most frequent use case is to add properties to a primitive. As a primitive is immutable, you need to convert it to a wrapper object to do so. Read on if you want to see some of JavaScript’s more obscure corners. Let us start with a short quiz: What does ({}).valueOf.call(myvar) do?
    • og:title
      JavaScript: converting any value to an object
  • Twitter Meta Tags

    1
    • twitter:card
      summary
  • Link Tags

    5
    • alternate
      https://2ality.com/feeds/posts.atom
    • apple-touch-icon
      ../../img/favicons/2ality-favicon-180x180.png
    • icon
      ../../img/favicons/2ality-favicon-opaque.svg
    • mask-icon
      ../../img/favicons/2ality-favicon-transparent.svg
    • stylesheet
      ../../assets/main.css

Links

12