1 contributor
Like
Install apply-spec as a package?
Copied
npm i @bit/justin-capalbo.ramda.apply-spec
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
applySpec (
spec:
) : Object
Function
Given a spec object recursively mapping properties to functions, creates a function producing an object of the same structure, by mapping each property to the result of calling its associated function with the supplied arguments.
Example
Argument
spec:
Object
an object recursively mapping properties to functions for producing the values for these properties.
Returns
Function
A function that returns an object of the same structure as `spec', with each property set to the value returned by calling its associated function with the supplied arguments.