doff
Version:
A powerful tool to free your objects and arrays from unwanted content
14 lines (9 loc) • 307 B
JavaScript
;
// Load modules
const isLength = require('./isLength');
const LocalPath = require('./LocalPath');
// Define exports
module.exports = function isPath(value) {
const type = typeof value;
return LocalPath.isInstance(value) || type === 'string' || isLength(value) || type === 'symbol';
};