mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -10,9 +10,7 @@ function cloneBuffer(buffer, isDeep) {
|
||||
if (isDeep) {
|
||||
return buffer.slice();
|
||||
}
|
||||
var Ctor = buffer.constructor,
|
||||
result = new Ctor(buffer.length);
|
||||
|
||||
var result = new buffer.constructor(buffer.length);
|
||||
buffer.copy(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user