当前位置:网站首页>JS_ Realize the separation of multiple lines of text into an array according to the newline
JS_ Realize the separation of multiple lines of text into an array according to the newline
2022-07-24 07:27:00 【Small skew | front end】

let value = ` Zhang San Li Si `
let code = value.split(/[\r\n\t]/)
code = code.filter(item => item)
// code = Array.from(new Set(code))
console.log(code);
边栏推荐
- AMD64(x86_64)架构abi文档:上
- QoS服务质量四QoS边界行为之流量监管
- Basic syntax of MySQL DDL and DML and DQL
- sqli-labs简单安装
- 二维平面多段线Y轴最短距离
- Paper reading: hardnet: a low memory traffic network
- What kind of mode can make platform users self-help fission- Chain 2+1
- Stm32h750vbt6 drives programmable gain amplifier module pga113 -- Hal Library Based on cubemx
- 深度学习二三事-回顾那些经典卷积神经网络
- Part I - Fundamentals of C language_ 11. Comprehensive project - greedy snake
猜你喜欢

Compilation and debugging (GCC, g++, GDB)

Chapter007-FPGA学习之IIC总线EEPROM读取

系统集成项目管理工程师(软考中级)重点知识、背诵版

System integration project management engineer (soft test intermediate) key knowledge, recitation version

MITRE ATT&CK超详细学习笔记-01(背景,术语,案例)

Single Gmv has increased 100 times. What is the "general rule" behind the rise of popular brands?
![[line test] Figure finding regular questions](/img/61/d1c2cd399cf0d808e4fa25cd5fe681.png)
[line test] Figure finding regular questions
![[sequential logic circuit] - register](/img/a5/c92e0404c6a970a62595bc7a3b68cd.gif)
[sequential logic circuit] - register

nacos配置中心源码分析

【LeetCode-简单】20. 有效的括号 - 栈
随机推荐
拉普拉斯(Laplace)分布
全国职业院校技能大赛网络安全B模块 缓冲区溢出漏洞
Oauth2==SSO三种协议。Oauth2四种模式
C language from introduction to soil -- super detailed summary of operators
Chapter007-FPGA学习之IIC总线EEPROM读取
numpy.cumsum
[introduction to C language] zzulioj 1011-1015
【Tips】创建版本控制项目的简单方法
[leetcode simple] 20. Valid brackets stack
【C语言入门】ZZULIOJ 1011-1015
mysql查询当前节点的所有父级
MITRE ATT&CK超详细学习笔记-01(背景,术语,案例)
Vulnhub DC1
Buddy: core function entry
Compilation and debugging (GCC, g++, GDB)
Pytorch deep learning practice lesson 10 / assignment (basic CNN)
Bookkeeping app: xiaoha bookkeeping 1 - production of welcome page
B. Also Try Minecraft
AMD64 (x86_64) architecture ABI document: upper
[leetcode] 444. Sequence reconstruction