+ string util

This commit is contained in:
tmshv committed 2016-02-25 18:06:20 +03:00
1 parent 48b2ca8d3e
commit 1bb8c96c07
1 file changed
+8
+8
View File
@@ -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);