mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
24 lines
716 B
JavaScript
24 lines
716 B
JavaScript
import invoker from './invoker.js';
|
|
|
|
/**
|
|
* Splits a string into an array of strings based on the given
|
|
* separator.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category String
|
|
* @sig (String | RegExp) -> String -> [String]
|
|
* @param {String|RegExp} sep The pattern.
|
|
* @param {String} str The string to separate into an array.
|
|
* @return {Array} The array of strings from `str` separated by `str`.
|
|
* @see R.join
|
|
* @example
|
|
*
|
|
* const pathComponents = R.split('/');
|
|
* R.tail(pathComponents('/usr/local/bin/node')); //=> ['usr', 'local', 'bin', 'node']
|
|
*
|
|
* R.split('.', 'a.b.c.xyz.d'); //=> ['a', 'b', 'c', 'xyz', 'd']
|
|
*/
|
|
var split = /*#__PURE__*/invoker(1, 'split');
|
|
export default split; |