@capaj/prisma-typegraphql-types-generator
Version:
Prisma generator for generating TypeGraphQL class types and enums, It works like a copilot where the generated output is very human readable and can be edited
16 lines • 458 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeTheFirstChar = void 0;
const removeTheFirstChar = (str, char) => {
let copy = '';
let found = false;
str.split('').forEach((e) => {
if (e === char && !found) {
return (found = true);
}
copy += e;
});
return copy;
};
exports.removeTheFirstChar = removeTheFirstChar;
//# sourceMappingURL=removeTheFirstChar.js.map