Last active
June 3, 2021 13:45
-
-
Save PachVerb/9feb13f052cb54304a6a929343209d9c to your computer and use it in GitHub Desktop.
数组number成员序列化(包含索引)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* note: From a reasonable point of view.This method only works with members of the JS base datatype -number. | |
Include sheet but not limited to other types, can also be used. Whether reasonable, please consider。 | |
// single quotes | |
const seqarr = (arr) => "'" + arr.join("','") + "'"; | |
// test func | |
seqarr([1, 2, 3]) // -> "'1', '2', '3'"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
欢迎留言讨论,