main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
398 bytes
|
Line | |
---|
1 | import JsonNode from "./JsonNode.mjs";
|
---|
2 | import { isFalse, isTrue, isNull, isNumber, isString, isArray, isObject } from "./predicates.mjs";
|
---|
3 | class JsonArray extends JsonNode {
|
---|
4 | static type = 'array';
|
---|
5 | get items() {
|
---|
6 | return this.children.filter(node => isFalse(node) || isTrue(node) || isNull(node) || isNumber(node) || isString(node) || isArray(node) || isObject);
|
---|
7 | }
|
---|
8 | }
|
---|
9 | export default JsonArray; |
---|
Note:
See
TracBrowser
for help on using the repository browser.