UNPKG

tough-rational

Version:

Rational class using BigInt with fallback to bignumber.js

8 lines (4 loc) 177 B
'use strict'; const range = require('./range'); const climbProtoChain = (o, n) => range(n).reduce(() => (o = Object.getPrototypeOf(o)), o); module.exports = climbProtoChain;