This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/string/camelCase.js
T

18 lines
461 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const capitalize = require('./capitalize.js');
const words = require('./words.js');
function camelCase(str) {
const words$1 = words.words(str);
if (words$1.length === 0) {
return '';
}
const [first, ...rest] = words$1;
return `${first.toLowerCase()}${rest.map(word => capitalize.capitalize(word)).join('')}`;
}
exports.camelCase = camelCase;