Skip to content

Instantly share code, notes, and snippets.

@PachVerb
Last active June 3, 2021 13:45
Show Gist options
  • Save PachVerb/9feb13f052cb54304a6a929343209d9c to your computer and use it in GitHub Desktop.
Save PachVerb/9feb13f052cb54304a6a929343209d9c to your computer and use it in GitHub Desktop.
数组number成员序列化(包含索引)
* 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'";
@PachVerb
Copy link
Author

PachVerb commented Jun 3, 2021

欢迎留言讨论,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment