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

README.md

get-proto Version Badge

github actions coverage License Downloads

npm badge

Robustly get the Prototype of an object. Uses the best available method.

Getting started

npm install --save get-proto

Usage/Examples

const assert = require('assert');
const getProto = require('get-proto');

const a = { a: 1, b: 2, [Symbol.toStringTag]: 'foo' };
const b = { c: 3, __proto__: a };

assert.equal(getProto(b), a);
assert.equal(getProto(a), Object.prototype);
assert.equal(getProto({ __proto__: null }), null);

Tests

Clone the repo, npm install, and run npm test