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.
10 lines
307 B
JavaScript
10 lines
307 B
JavaScript
6 years ago
|
'use strict';
|
||
|
|
||
|
const isNode = require("./node");
|
||
|
const isNodes = require("./nodes");
|
||
|
|
||
|
module.exports = function isAttribute(value) {
|
||
|
/* We assume that anything that isn't a node or a list of them, is therefore an attribute. */
|
||
|
return (!isNode(value) && !isNodes(value) && typeof value !== "function");
|
||
|
};
|