import { stringHelper } from "https://deno.land/x/m_utils@v1.0.5/mod.ts";
const { splitToNumbers } = stringHelper;
字符串根据拆分符号转为数字数组
Examples
Example 1
Example 1
stringHelper.splitToNumbers('100x100', 'x') // [100, 100]
stringHelper.splitToNumbers('100ax100', 'x') // []