ブックマーク / arasatasaygin.github.io (1)

  • is.js - micro check library

    Checks if the given value type is arguments. var getArguments = function() { return arguments; }; var arguments = getArguments(); is.arguments(arguments); => true is.not.arguments({foo: 'bar'}); => true is.all.arguments(arguments, 'bar'); => false is.any.arguments(['foo'], arguments); => true // 'all' and 'any' interfaces can also take array parameter is.all.arguments([arguments, 'foo', 'bar']); =

    oxoofo
    oxoofo 2015/01/29
    <- hatena/interest/javascript
  • 1