Esempio n. 1
0
        public static JSValueArray CopyFrom(IReadOnlyList <JSValue> other)
        {
            JSValueArray arr = new JSValueArray();

            foreach (var item in other)
            {
                arr.Add(item);
            }

            return(arr);
        }
Esempio n. 2
0
        private static JSValueArray InternalReadArrayFrom(IJSValueReader reader)
        {
            var jsArray = new JSValueArray();

            while (reader.GetNextArrayItem())
            {
                jsArray.Add(InternalReadFrom(reader));
            }

            return(jsArray);
        }