updeep-remeda/lib/wrap.js
2017-04-18 17:55:46 -07:00

7 lines
184 B
JavaScript

import curry from './util/curry'
import freeze from './freeze'
export default function wrap(func, length = func.length) {
return curry((...args) => freeze(func(...args)), length)
}