mielk-fn 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mielk-fn",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Set of helpful functions",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import arrays from './methods/arrays';
2
2
  import objects from './methods/objects';
3
+ import strings from './methods/strings';
3
4
 
4
- export { arrays, objects };
5
+ export { arrays, objects, strings };
@@ -35,4 +35,6 @@ const toIndexedArray = (items: any[], callback: NumberFunction): any[] => {
35
35
  return arr;
36
36
  };
37
37
 
38
+ export { toMap, toIndexedArray };
39
+
38
40
  export default { toMap, toIndexedArray };
@@ -0,0 +1,6 @@
1
+ const clear = (value: string): string => {
2
+ const regex = /(^\s|(?<=\s)\s|\s$)/gi;
3
+ return value.replace(regex, '');
4
+ };
5
+
6
+ export default { clear };