说明
polaris 是一个为数组和字符串提供数据操作的工程.
安装
polaris 可作为 npm 软件包。 您可以通过 npm 软件包安装 @ephox/polaris
从 npm 安装
npm install @ephox/polaris
使用量
Arrays: 提供处理数组的公用功能.
Pattern:提供处理regex的公用功能.
PositionArray: 提供处理位置数组的公用功能.
Regexes:为处理regex提供了更多的功能.
Search: 提供处理搜索字符串的功能.
Splitting: 提供用于分割字符串的功能.
Strings: 提供处理字符串的功能.
Words: 提供功能解析文字到单词.
测试
polaris 用途 bedrock 进行原子测试.
运行测试
$ yarn test