source: node_modules/ramda-adjunct/src/invoke.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 538 bytes
Line 
1import { __ } from 'ramda';
2
3import invokeArgs from './invokeArgs';
4
5/**
6 * Invokes the method at path of object.
7 *
8 * @func invoke
9 * @memberOf RA
10 * @since {@link https://char0n.github.io/ramda-adjunct/2.31.0|v2.31.0}
11 * @category Object
12 * @sig Array -> Object -> *
13 * @param {Array.<string|number>} path The path of the method to invoke
14 * @param {Object} obj The object to query
15 * @return {*}
16 * @example
17 *
18 * RA.invoke(['random'], Math); //=> 0.5113253820009047
19 */
20const invoke = invokeArgs(__, [], __);
21
22export default invoke;
Note: See TracBrowser for help on using the repository browser.