Sha256: a9db3306bf77ca64b6ba5f514db2fe447b642eebcb697e1e2be5a328848a05d8
Contents?: true
Size: 1.05 KB
Versions: 39
Compression:
Stored size: 1.05 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== // ======================================================================== // SC.isEqual Tests // ======================================================================== /*globals module test */ (function() { module("isArray"); test("Simple tests", function() { ok(!SC.isArray(undefined), "undefined is not an array"); ok(!SC.isArray(null), "null is not an array"); ok(SC.isArray([]), "Array is an array"); ok(!SC.isArray({}), "Object is not an array"); ok(!SC.isArray(12), "Number is not an array"); }); test("SC.Array", function() { var myArray = SC.Object.create(SC.Array); ok(SC.isArray(myArray), "SC.Array is considered an array"); }); })();
Version data entries
39 entries across 39 versions & 1 rubygems