ether-admin/node_modules/get-proto
chiguyong eb399474f4 init: ether-admin frontend project
- Vue3 + TypeScript + Ant Design Vue
- Auth, User, Role, Project management pages
- Pinia state management
- Vue Router with auth guard
2026-03-19 09:28:30 +08:00
..
.github init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
test init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
.eslintrc init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
.nycrc init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
CHANGELOG.md init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
LICENSE init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
Object.getPrototypeOf.d.ts init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
Object.getPrototypeOf.js init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
README.md init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
Reflect.getPrototypeOf.d.ts init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
Reflect.getPrototypeOf.js init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
index.d.ts init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
index.js init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
package.json init: ether-admin frontend project 2026-03-19 09:28:30 +08:00
tsconfig.json init: ether-admin frontend project 2026-03-19 09:28:30 +08:00

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