Parameters
items - The items object.
Returns
The collection.
Syntax
| JavaScript |
|
ToCollection(items)
|
Create typed collection from deserialized JavasScript array.
Example
| JavaScript |
// Create typed collection from deserialized JavasScript array.
ToCollection()
{
const array = [
{ PropertyName: "Name", Value: "First" },
{ PropertyName: "Sequence", Value: 1 },
];
const columns = LJCDataColumns.ToCollection(array);
const result = columns.Count;
// result:
// 2;
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.