UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.

10 lines (6 loc) 200 B
'use strict'; var toString = Object.prototype.toString , id = toString.call(require('./noop')); module.exports = function (f) { return (typeof f === "function") && (toString.call(f) === id); };