adi-o3-multipass/frontend/node_modules/get-proto
2025-09-16 07:53:27 -05:00
..
.github added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
test added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
.eslintrc added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
.nycrc added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
CHANGELOG.md added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
index.d.ts added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
index.js added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
LICENSE added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
Object.getPrototypeOf.d.ts added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
Object.getPrototypeOf.js added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
package.json added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
README.md added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
Reflect.getPrototypeOf.d.ts added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
Reflect.getPrototypeOf.js added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00
tsconfig.json added front end - can process one at a time currently - need to fix multi-upload and processing 2025-09-16 07:53:27 -05:00

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