Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you sure?

    > function isboxed() { return this instanceof Number; }
    > isboxed.call(5);
    true


as inglor said, this depends on strict mode:

    > var isboxed = (function() {"use strict"; return function isboxed() {return this instanceof Number;}}());
    > isboxed.call(5);
    false




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: