wavelength_server/websocket_server/node_modules/hasown
2024-10-30 15:12:52 -05:00
..
.github add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
.eslintrc add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
.nycrc add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
CHANGELOG.md add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
index.d.ts add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
index.js add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
LICENSE add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
package.json add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
README.md add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
tsconfig.json add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00

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