public static JSValueArray CopyFrom(IReadOnlyList <JSValue> other) { JSValueArray arr = new JSValueArray(); foreach (var item in other) { arr.Add(item); } return(arr); }
private static JSValueArray InternalReadArrayFrom(IJSValueReader reader) { var jsArray = new JSValueArray(); while (reader.GetNextArrayItem()) { jsArray.Add(InternalReadFrom(reader)); } return(jsArray); }