You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
323 B
JavaScript
9 lines
323 B
JavaScript
'use strict';
|
|
|
|
const isNode = require("./node");
|
|
|
|
module.exports = function isNodes(value) {
|
|
/* We're cheating a little bit here; an empty array is considered an array of nodes, and we only check whether the first element is a node or not. */
|
|
return (Array.isArray(value) && (value.length === 0 || isNode(value[0])));
|
|
};
|