Chromium Code Reviews| Index: sdk/lib/_internal/lib/js_rti.dart |
| =================================================================== |
| --- sdk/lib/_internal/lib/js_rti.dart (revision 24212) |
| +++ sdk/lib/_internal/lib/js_rti.dart (working copy) |
| @@ -418,6 +418,11 @@ |
| return JS('int', r'#.length', array); |
| } |
| +/// Returns whether [value] is a JavaScript array. |
|
kasperl
2013/06/21 06:03:55
Should we just get rid of this and inline it at th
ngeoffray
2013/06/24 09:47:23
Keeping it makes the code that uses it actually ni
|
| +bool isJsArray(var value) { |
| + return value is JSArray; |
| +} |
| + |
| /// Returns [:true:] if [o] is a JavaScript function. |
| bool isJsFunction(var o) => JS('bool', r'typeof # == "function"', o); |