当前位置:网站首页>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);
边栏推荐
- Headline | Asian control technology products are selected in the textile and clothing industry digital transformation solution key promotion directory of Textile Federation
- LeetCode 2. 两数相加
- Unity uses ugui to set a simple multi-level horizontal drop-down menu (no code required)
- Masa framework - DDD design (1)
- < IV & gt; H264 decode output YUV file
- IP地址转换地址段
- The login box of unity hub becomes too narrow to log in
- Exploration and practice of integration of streaming and wholesale in jd.com
- System Verilog implements priority arbiter
- 移动应用性能工具探索之路
猜你喜欢

pwm呼吸燈

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

一文看懂:数据指标体系的4大类型

Download blender on Alibaba cloud image station

【Leetcode】14. 最长公共前缀

SQL solves the problem of continuous login deformation holiday filtering

linux下配置Mysql授权某个用户远程访问,不受ip限制
![John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])](/img/4c/ddf7f8085257d0eb8766dbec251345.png)
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])

七张图,学会做有价值的经营分析

Multi task prompt learning: how to train a large language model?
随机推荐
学习周刊-总第60期-2022年第25周
PWM controlled steering gear
OpenHarmony如何启动远程设备的FA
Analysis of how to prevent virus in industrial computer
VMware install win10 image
Understand one article: four types of data index system
Deep learning image data automatic annotation [easy to understand]
Domestic relatively good OJ platform [easy to understand]
⌈ 2022 ⌋ how to use webp gracefully in projects
LeetCode 6. Zigzag transformation (n-shaped transformation)
[North Asia data recovery] data recovery case of raid crash caused by hard disk disconnection during data synchronization of hot spare disk of RAID5 disk array
国内比较好的OJ平台[通俗易懂]
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
Résumé de l'entrevue de Dachang Daquan
[fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)
Role and function of uboot
基于多元时间序列对高考预测分析案例
Youzan won the "top 50 Chinese enterprise cloud technology service providers" together with Tencent cloud and Alibaba cloud [easy to understand]
Take you ten days to easily complete the go micro service series (I)
易语言abcd排序