ensure-array.js #1

  • //
  • guest/
  • jen_bottom/
  • ember/
  • tutorial/
  • testapp/
  • node_modules/
  • es5-ext/
  • object/
  • ensure-array.js
  • View
  • Commits
  • Open Download .zip Download (267 B)
"use strict";

var toShortString = require("../to-short-string-representation")
  , isArray       = require("./is-array-like");

module.exports = function (value) {
	if (isArray(value)) return value;
	throw new TypeError(toShortString(value) + " is not a array");
};
# Change User Description Committed
#1 23539 jenbottom Adding the basic code for ember test appk, created with 'ember new' command