UNPKG

apidoc-core

Version:

Core parser library to generate apidoc result following the apidoc-spec

10 lines (9 loc) 193 B
/** * Strip whitespace from the beginning and end of a string * * @param str string * @returns string */ module.exports = function trim(str) { return str.replace(/^\s*|\s*$/g, ''); };