Bump to v4.15.0.

This commit is contained in:
John-David Dalton
2016-08-11 23:29:12 -07:00
parent cbf5cb1162
commit 28663c1e27
54 changed files with 344 additions and 217 deletions

View File

@@ -1,11 +1,5 @@
import toString from './toString.js';
/** Used for built-in method references. */
var stringProto = String.prototype;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeReplace = stringProto.replace;
/**
* Replaces matches for `pattern` in `string` with `replacement`.
*
@@ -29,7 +23,7 @@ function replace() {
var args = arguments,
string = toString(args[0]);
return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]);
return args.length < 3 ? string : string.replace(args[1], args[2]);
}
export default replace;