getArgsNames

Type:Function
Status:beta
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.function

Get the arguments names of the passed function. Return an array of the arguments names

Params

  1. func*-Function

    The function reference of which get the arguments names

Return

  1. -Array

    An array of arguments names

Example

import { getArgsNames } from '@blackbyte/sugar/function';
function hello(world, coco, plop) { }
getArgsNames(hello); // => ['world', 'coco', 'plop']

Todo

  • testsnormal