当前位置:网站首页>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);
边栏推荐
- PhD battle-11 preview | review and prospect backdoor attack and defense of neural network
- What is normal distribution? What is the 28 law?
- LeetCode 1. 两数之和
- La boîte de connexion du hub de l'unit é devient trop étroite pour se connecter
- < IV & gt; H264 decode output YUV file
- 618 reprise en profondeur: la méthode gagnante de la famille Haier Zhi
- John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
- Global and Chinese market of discharge machines 2022-2028: Research Report on technology, participants, trends, market size and share
- 寒门再出贵子:江西穷县考出了省状元,做对了什么?
- Hard core! One configuration center for 8 classes!
猜你喜欢
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
linux安装postgresql + patroni 集群问题
串口控制舵机转动
电脑自带软件使图片底色变为透明(抠图白底)
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
TCP congestion control details | 2 background
OpenPose的使用
【Leetcode】14. 最长公共前缀
【征文活动】亲爱的开发者,RT-Thread社区喊你投稿啦
Kubernetes three open interfaces first sight
随机推荐
pwm呼吸燈
VMware安装win10镜像
机器学习-感知机模型
< IV & gt; H264 decode output YUV file
数字IC手撕代码--投票表决器
⌈ 2022 ⌋ how to use webp gracefully in projects
DigiCert SSL证书支持中文域名申请吗?
上传代码到远程仓库报错error: remote origin already exists.
亚马逊云科技 Community Builder 申请窗口开启
Exploration and practice of integration of streaming and wholesale in jd.com
PCL least median square method fitting plane
IP address translation address segment
Configure ARP table entry restrictions and port security based on the interface (restrict users' private access to fool switches or illegal host access)
Day 18 of leetcode dynamic planning introduction
LeetCode 1. Sum of two numbers
TCP server communication process (important)
Seal Library - installation and introduction
PWM breathing lamp
Global and Chinese markets of stainless steel surgical suture 2022-2028: Research Report on technology, participants, trends, market size and share
Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP