Chromium Code Reviews| Index: chrome/browser/resources/gpu_internals/util.js |
| =================================================================== |
| --- chrome/browser/resources/gpu_internals/util.js (revision 0) |
| +++ chrome/browser/resources/gpu_internals/util.js (revision 0) |
| @@ -0,0 +1,8 @@ |
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +function isArray(value) { |
|
arv (Not doing code reviews)
2010/12/08 17:55:19
Try Array.isArray(val) or val instanceof Array
nduca
2010/12/08 19:08:22
Done.
|
| + return value != null && |
| + typeof value == 'object' && |
| + typeof value.length == 'number'; |
| +} |