]> gerrit.simantics Code Review - simantics/district.git/blob - not.js
c6dbe97fb6ecd996f645e52547c3431c6ebda45b
[simantics/district.git] / not.js
1 'use strict';
2
3 var callable     = require('../../object/valid-callable')
4   , defineLength = require('../_define-length')
5
6   , apply = Function.prototype.apply;
7
8 module.exports = function () {
9         var fn = callable(this);
10
11         return defineLength(function () {
12                 return !apply.call(fn, this, arguments);
13         }, fn.length);
14 };