Remove semicolons from dropRight.

This commit is contained in:
Michał Lipiński
2017-10-16 12:01:05 +02:00
parent 00705afc19
commit bf5d0867a6

View File

@@ -23,8 +23,8 @@ import slice from './slice.js'
* // => [1, 2, 3] * // => [1, 2, 3]
*/ */
function dropRight(array, n=1) { function dropRight(array, n=1) {
const length = array == null ? 0 : array.length; const length = array == null ? 0 : array.length
return length ? slice(array, 0, n < 0 ? 0 : -n) : []; return length ? slice(array, 0, n < 0 ? 0 : -n) : []
} }
export default dropRight export default dropRight