]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/function/is-function.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / function / is-function.js
1 'use strict';
2
3 var toString = Object.prototype.toString
4
5   , id = toString.call(require('./noop'));
6
7 module.exports = function (f) {
8         return (typeof f === "function") && (toString.call(f) === id);
9 };