当前位置:网站首页>JS delete substring in string
JS delete substring in string
2022-07-02 17:00:00 【spring-java】
const removeString = (string, separator) => {
// We split the string without delimiters
const separatedArray = string.split(separator);
// We use an empty string to splittedArray Join in
const separatedString = separatedArray.join("");
return separatedString;
}
const str = removeString('this-is-a-sting', '-');
console.log(str);
边栏推荐
- C语言自定义函数的方法
- Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP
- ⌈ 2022 ⌋ how to use webp gracefully in projects
- Kubernetes three open interfaces first sight
- P6774 [NOI2020] 时代的眼泪(分块)
- Cell: Tsinghua Chenggong group revealed an odor of skin flora. Volatiles promote flavivirus to infect the host and attract mosquitoes
- Routing mode: hash and history mode
- TCP server communication process (important)
- uboot的作用和功能
- Résumé de l'entrevue de Dachang Daquan
猜你喜欢
隐私计算技术创新及产业实践研讨会:学习
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Serial port controls steering gear rotation
机器学习-感知机模型
Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
Digital IC hand tearing code -- voting device
According to the atlas of data security products and services issued by the China Academy of information technology, meichuang technology has achieved full coverage of four major sectors
OpenHarmony如何启动远程设备的FA
寒门再出贵子:江西穷县考出了省状元,做对了什么?
渗透工具-内网权限维持-Cobalt strike
随机推荐
Notice on holding a salon for young editors of scientific and Technological Journals -- the abilities and promotion strategies that young editors should have in the new era
What is normal distribution? What is the 28 law?
How openharmony starts FA of remote devices
C语言自定义函数的方法
618深度複盤:海爾智家的制勝方法論
流批一体在京东的探索与实践
PWM controlled steering gear
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
VMware install win10 image
How to choose the right kubernetes storage plug-in? (09)
vscode设置删除行快捷键[通俗易懂]
DGraph: 大规模动态图数据集
Written by unity Jason
What will you do after digital IC Verification?
亚马逊云科技 Community Builder 申请窗口开启
渗透工具-内网权限维持-Cobalt strike
易语言abcd排序
数字IC手撕代码--投票表决器
IP地址转换地址段
Privacy computing technology innovation and industry practice seminar: Learning