UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

6 lines (4 loc) 134 B
const toKebabCase = (str) => { return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase(); }; module.exports = toKebabCase;