mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 03:51:24 +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>
37 lines
962 B
JavaScript
37 lines
962 B
JavaScript
var _checkForMethod = /*#__PURE__*/require('./internal/_checkForMethod');
|
|
|
|
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
|
|
|
|
var slice = /*#__PURE__*/require('./slice');
|
|
|
|
/**
|
|
* Returns all but the first element of the given list or string (or object
|
|
* with a `tail` method).
|
|
*
|
|
* Dispatches to the `slice` method of the first argument, if present.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category List
|
|
* @sig [a] -> [a]
|
|
* @sig String -> String
|
|
* @param {*} list
|
|
* @return {*}
|
|
* @see R.head, R.init, R.last
|
|
* @example
|
|
*
|
|
* R.tail([1, 2, 3]); //=> [2, 3]
|
|
* R.tail([1, 2]); //=> [2]
|
|
* R.tail([1]); //=> []
|
|
* R.tail([]); //=> []
|
|
*
|
|
* R.tail('abc'); //=> 'bc'
|
|
* R.tail('ab'); //=> 'b'
|
|
* R.tail('a'); //=> ''
|
|
* R.tail(''); //=> ''
|
|
*/
|
|
|
|
|
|
var tail = /*#__PURE__*/_curry1( /*#__PURE__*/_checkForMethod('tail', /*#__PURE__*/slice(1, Infinity)));
|
|
module.exports = tail; |