智慧水务管理系统 - 精河县供水工程综合管理平台
bot_dev1 85df71fc28 feat: 实现供水运营专题大屏BI可视化 4 dias atrás
..
.github feat: 实现供水运营专题大屏BI可视化 4 dias atrás
test feat: 实现供水运营专题大屏BI可视化 4 dias atrás
.eslintrc feat: 实现供水运营专题大屏BI可视化 4 dias atrás
.nycrc feat: 实现供水运营专题大屏BI可视化 4 dias atrás
CHANGELOG.md feat: 实现供水运营专题大屏BI可视化 4 dias atrás
LICENSE feat: 实现供水运营专题大屏BI可视化 4 dias atrás
README.md feat: 实现供水运营专题大屏BI可视化 4 dias atrás
get.d.ts feat: 实现供水运营专题大屏BI可视化 4 dias atrás
get.js feat: 实现供水运营专题大屏BI可视化 4 dias atrás
package.json feat: 实现供水运营专题大屏BI可视化 4 dias atrás
set.d.ts feat: 实现供水运营专题大屏BI可视化 4 dias atrás
set.js feat: 实现供水运营专题大屏BI可视化 4 dias atrás
tsconfig.json feat: 实现供水运营专题大屏BI可视化 4 dias atrás

README.md

dunder-proto Version Badge

github actions coverage License Downloads

npm badge

If available, the Object.prototype.__proto__ accessor and mutator, call-bound.

Getting started

npm install --save dunder-proto

Usage/Examples

const assert = require('assert');
const getDunder = require('dunder-proto/get');
const setDunder = require('dunder-proto/set');

const obj = {};

assert.equal('toString' in obj, true);
assert.equal(getDunder(obj), Object.prototype);

setDunder(obj, null);

assert.equal('toString' in obj, false);
assert.equal(getDunder(obj), null);

Tests

Clone the repo, npm install, and run npm test