• Login
    • Report A Bug
    • System Information
    • System Tests
    • System Policies
    • Code Documentation
    • Occam Source Code
    • Web Client Source Code
    • About Occam
    • Acknowledgements
    • Guides / Documentation
    • Publications

translation missing: en.flash.saving
translation missing: en.flash.error
  • Bibliography Data
  • Metadata
resource
  • git
    https://github.com/inspect-js/hasOwn.git Source Repository
    QmU4nNXYqhzTYyDQ8FDth1VaZJjuUQiQatqDcerTvo3VCy
    1237980ed6c3915c5c3ba996345289546bdaebef
      QmU4nNXYqhzTYyDQ8FDth1VaZJjuUQiQatqDcerTvo3VCy
      1237980ed6c3915c5c3ba996345289546bdaebef

      • Details
      • Files
      • History
        • Source

          https://github.com/inspect-js/hasOwn.git

          hasown Version Badge

          github actions coverage License Downloads

          npm badge

          A robust, ES3 compatible, "has own property" predicate.

          Example

          const assert = require('assert');
          const hasOwn = require('hasown');
          
          assert.equal(hasOwn({}, 'toString'), false);
          assert.equal(hasOwn([], 'length'), true);
          assert.equal(hasOwn({ a: 42 }, 'a'), true);
          

          Tests

          Simply clone the repo, npm install, and run npm test

          Related

          • maintainer

            npm

          Share

          • URL

            Copy
          • Embed Link

            Copy
          • QR Code

        • JavaScript must be enabled.

          There was an error retrieving this content.

          The content could not be found.

        • JavaScript must be enabled.

          There was an error retrieving this content.

          The content could not be found.

        Confirm
        Do you wish to proceed?

        Confirm message?