mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
Remove semicolons from dropRight.
This commit is contained in:
@@ -23,8 +23,8 @@ import slice from './slice.js'
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function dropRight(array, n=1) {
|
||||
const length = array == null ? 0 : array.length;
|
||||
return length ? slice(array, 0, n < 0 ? 0 : -n) : [];
|
||||
const length = array == null ? 0 : array.length
|
||||
return length ? slice(array, 0, n < 0 ? 0 : -n) : []
|
||||
}
|
||||
|
||||
export default dropRight
|
||||
|
||||
Reference in New Issue
Block a user