is-boolean.js #1

  • //
  • guest/
  • jen_bottom/
  • ember/
  • tutorial/
  • testapp/
  • node_modules/
  • es5-ext/
  • boolean/
  • is-boolean.js
  • View
  • Commits
  • Open Download .zip Download (269 B)
"use strict";

var objToString = Object.prototype.toString, id = objToString.call(true);

module.exports = function (value) {
	return (
		typeof value === "boolean" ||
		(typeof value === "object" && (value instanceof Boolean || objToString.call(value) === id))
	);
};
# Change User Description Committed
#1 23539 jenbottom Adding the basic code for ember test appk, created with 'ember new' command