UNPKG

oftype

Version:

A JavaScript module for checking variable runtime type

20 lines (14 loc) 347 B
var oftype = require('../oftype'); var ddt = require('ddt'); ddt.test({ inputs: [[null, null], //true [null, Object]], //true outputs: [true, true], transform: function(input) { return oftype(input[0], input[1]); }, groupName: 'Test group 2', before: function() { oftype.nullAsObject = true; } });