Skip to content

Commit c754153

Browse files
committed
Remove deprecated lodash.isarray
1 parent 52dceee commit c754153

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
var isRegExp = require('lodash.isregexp');
55
var escapeRegExp = require('lodash.escaperegexp');
66
var isString = require('lodash.isstring');
7-
var isArray = require('lodash.isarray');
87
var flatten = require('lodash.flatten');
98

109
/**
@@ -54,7 +53,7 @@ function replaceString(str, match, fn) {
5453
}
5554

5655
module.exports = function reactStringReplace(source, match, fn) {
57-
if (!isArray(source)) source = [source];
56+
if (!Array.isArray(source)) source = [source];
5857

5958
return flatten(source.map(function(x) {
6059
return isString(x) ? replaceString(x, match, fn) : x;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"dependencies": {
3434
"lodash.escaperegexp": "^4.1.1",
3535
"lodash.flatten": "^4.2.0",
36-
"lodash.isarray": "^4.0.0",
3736
"lodash.isregexp": "^3.0.5",
3837
"lodash.isstring": "^4.0.1"
3938
},

0 commit comments

Comments
 (0)