mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import castPath from './castPath.js';
|
||||
import last from '../last.js';
|
||||
import parent from './parent.js';
|
||||
import toKey from './toKey.js';
|
||||
import castPath from './castPath.js'
|
||||
import last from '../last.js'
|
||||
import parent from './parent.js'
|
||||
import toKey from './toKey.js'
|
||||
|
||||
/**
|
||||
* The base implementation of `unset`.
|
||||
@@ -12,9 +12,9 @@ import toKey from './toKey.js';
|
||||
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
||||
*/
|
||||
function baseUnset(object, path) {
|
||||
path = castPath(path, object);
|
||||
object = parent(object, path);
|
||||
return object == null || delete object[toKey(last(path))];
|
||||
path = castPath(path, object)
|
||||
object = parent(object, path)
|
||||
return object == null || delete object[toKey(last(path))]
|
||||
}
|
||||
|
||||
export default baseUnset;
|
||||
export default baseUnset
|
||||
|
||||
Reference in New Issue
Block a user