+ string util
This commit is contained in:
1 parent
48b2ca8d3e
commit
1bb8c96c07
1 file changed
+8
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Return a function that accept one String parameter and returns result of replacing.
|
||||
*
|
||||
* @param searchValue
|
||||
* @param replaceValue
|
||||
*/
|
||||
export const stringReplace = (searchValue, replaceValue) =>
|
||||
str => str.replace(searchValue, replaceValue);
|
||||
Reference in new issue
Block a user