Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

31
Frontend-Learner/node_modules/change-case/dist/keys.js generated vendored Normal file
View file

@ -0,0 +1,31 @@
import * as changeCase from "./index.js";
const isObject = (object) => object !== null && typeof object === "object";
function changeKeysFactory(changeCase) {
return function changeKeys(object, depth = 1, options) {
if (depth === 0 || !isObject(object))
return object;
if (Array.isArray(object)) {
return object.map((item) => changeKeys(item, depth - 1, options));
}
const result = Object.create(Object.getPrototypeOf(object));
Object.keys(object).forEach((key) => {
const value = object[key];
const changedKey = changeCase(key, options);
const changedValue = changeKeys(value, depth - 1, options);
result[changedKey] = changedValue;
});
return result;
};
}
export const camelCase = changeKeysFactory(changeCase.camelCase);
export const capitalCase = changeKeysFactory(changeCase.capitalCase);
export const constantCase = changeKeysFactory(changeCase.constantCase);
export const dotCase = changeKeysFactory(changeCase.dotCase);
export const trainCase = changeKeysFactory(changeCase.trainCase);
export const noCase = changeKeysFactory(changeCase.noCase);
export const kebabCase = changeKeysFactory(changeCase.kebabCase);
export const pascalCase = changeKeysFactory(changeCase.pascalCase);
export const pathCase = changeKeysFactory(changeCase.pathCase);
export const sentenceCase = changeKeysFactory(changeCase.sentenceCase);
export const snakeCase = changeKeysFactory(changeCase.snakeCase);
//# sourceMappingURL=keys.js.map