private static boolean isArrayLike(Scriptable obj)
    {
        return obj != null && (
            obj instanceof NativeArray ||
            obj instanceof Arguments ||
            ScriptableObject.hasProperty(obj, "length")
        );
    }
private static boolean isArrayLike ( Scriptable obj ) { return obj != null && ( obj instanceof NativeArray || obj instanceof Arguments || ScriptableObject . hasProperty ( obj , "length" ) ) ; }
@return true if the passed in Scriptable looks like an array