node-id3
Version:
Pure JavaScript ID3v2 Tag writer and reader
12 lines (10 loc) • 334 B
JavaScript
/**
* @param {any} value
* @returns {boolean} true if value is a function
*/
module.exports.isFunction = (value) => typeof value === 'function'
/**
* @param {any} value
* @returns {boolean} true if value is a string
*/
module.exports.isString = (value) => typeof value === 'string' || value instanceof String