/usr/lib/nodejs/ltx/lib/is.js is in node-ltx 2.6.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 'use strict'
var Element = require('./Element')
module.exports.isNode = function is (el) {
return el instanceof Element || typeof el === 'string'
}
module.exports.isElement = function isElement (el) {
return el instanceof Element
}
module.exports.isText = function isText (el) {
return typeof el === 'string'
}
|