UNPKG

pnpm

Version:

A fast implementation of npm install

9 lines (6 loc) 173 B
'use strict'; var isFunction = require('./is-function'); module.exports = function (x) { if (!isFunction(x)) throw new TypeError(x + " is not a function"); return x; };