1 Star 0 Fork 0

Sunny / type-challenges

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.zh-CN.md 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
antfu 提交于 2022-11-15 00:04 . chore: update index

CamelCase 困难 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語

实现 CamelCase<T> ,将 snake_case 类型的表示的字符串转换为 camelCase 的表示方式。

例如

type camelCase1 = CamelCase<"hello_world_with_types"> // 预期为 'helloWorldWithTypes'
type camelCase2 = CamelCase<"HELLO_WORLD_WITH_TYPES"> // 期望与前一个相同

返回首页 分享你的解答 查看解答

相关挑战

612・KebabCase
1
https://gitee.com/ztes/type-challenges.git
git@gitee.com:ztes/type-challenges.git
ztes
type-challenges
type-challenges
main

搜索帮助