substantial/updeep

View on GitHub
lib/wrap.js

Summary

Maintainability
A
0 mins
Test Coverage
import curry from './util/curry'
import freeze from './freeze'

export default function wrap(func, length = func.length) {
  return curry((...args) => freeze(func(...args)), length)
}