UNPKG

ramda-adjunct

Version:

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

20 lines (19 loc) 536 B
import { __ } from 'ramda'; import invokeArgs from './invokeArgs.js'; /** * Invokes the method at path of object. * * @func invoke * @memberOf RA * @since {@link https://char0n.github.io/ramda-adjunct/2.31.0|v2.31.0} * @category Object * @sig Array -> Object -> * * @param {Array.<string|number>} path The path of the method to invoke * @param {Object} obj The object to query * @return {*} * @example * * RA.invoke(['random'], Math); //=> 0.5113253820009047 */ var invoke = invokeArgs(__, [], __); export default invoke;