Function
| Static Public Summary | ||
| public |
reduceInheritanceChain(constr: Function, reducer: Reducer, carry: *, stop: Function): * takes a class and reduces its prototype chain with a given callback |
|
| public |
reducePrototypeChain(instance: Object, reducer: Reducer, carry: *, stop: Function): * takes an object and reduces its prototype chain with a given callback |
|
Static Public
public reduceInheritanceChain(constr: Function, reducer: Reducer, carry: *, stop: Function): * source
import {reduceInheritanceChain} from 'reduce-prototype/src/reducePrototypeChain.js'takes a class and reduces its prototype chain with a given callback
Return:
| * |
public reducePrototypeChain(instance: Object, reducer: Reducer, carry: *, stop: Function): * source
import {reducePrototypeChain} from 'reduce-prototype/src/reducePrototypeChain.js'takes an object and reduces its prototype chain with a given callback
Return:
| * |