|
24 | 24 | "console.log(slugify(title, \"_\")); // Output: 'hello_world_this_is_a_test'" |
25 | 25 | ], |
26 | 26 | "tags": ["javascript", "string", "slug", "utility"], |
27 | | - "author": "dostonnabotov" |
| 27 | + "author": "technoph1le" |
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "title": "Remove Duplicates", |
|
37 | 37 | "console.log(removeDuplicates(numbers)); // Output: [1, 2, 3, 4, 5]" |
38 | 38 | ], |
39 | 39 | "tags": ["javascript", "array", "deduplicate", "utility"], |
40 | | - "author": "dostonnabotov" |
| 40 | + "author": "technoph1le" |
41 | 41 | }, |
42 | 42 | { |
43 | 43 | "title": "Flatten Array", |
|
50 | 50 | "console.log(flattenArray(nestedArray)); // Output: [1, 2, 3, 4]" |
51 | 51 | ], |
52 | 52 | "tags": ["javascript", "array", "flatten", "utility"], |
53 | | - "author": "dostonnabotov" |
| 53 | + "author": "technoph1le" |
54 | 54 | } |
55 | 55 | ] |
56 | 56 | }, |
|
67 | 67 | "console.log(capitalize('hello')); // Output: 'Hello'" |
68 | 68 | ], |
69 | 69 | "tags": ["javascript", "string", "capitalize", "utility"], |
70 | | - "author": "dostonnabotov" |
| 70 | + "author": "technoph1le" |
71 | 71 | }, |
72 | 72 | { |
73 | 73 | "title": "Reverse String", |
|
79 | 79 | "console.log(reverseString('hello')); // Output: 'olleh'" |
80 | 80 | ], |
81 | 81 | "tags": ["javascript", "string", "reverse", "utility"], |
82 | | - "author": "dostonnabotov" |
| 82 | + "author": "technoph1le" |
83 | 83 | } |
84 | 84 | ] |
85 | 85 | }, |
|
96 | 96 | "console.log(formatDate(new Date())); // Output: '2024-12-10'" |
97 | 97 | ], |
98 | 98 | "tags": ["javascript", "date", "format", "utility"], |
99 | | - "author": "dostonnabotov" |
| 99 | + "author": "technoph1le" |
100 | 100 | }, |
101 | 101 | { |
102 | 102 | "title": "Get Time Difference", |
|
113 | 113 | "console.log(getTimeDifference(date1, date2)); // Output: 365" |
114 | 114 | ], |
115 | 115 | "tags": ["javascript", "date", "time-difference", "utility"], |
116 | | - "author": "dostonnabotov" |
| 116 | + "author": "technoph1le" |
117 | 117 | } |
118 | 118 | ] |
119 | 119 | }, |
|
135 | 135 | "times(randomFunction, 3); // Logs 'Function called!' three times" |
136 | 136 | ], |
137 | 137 | "tags": ["javascript", "function", "repeat", "utility"], |
138 | | - "author": "dostonnabotov" |
| 138 | + "author": "technoph1le" |
139 | 139 | }, |
140 | 140 | { |
141 | 141 | "title": "Debounce Function", |
|
153 | 153 | "window.addEventListener('resize', debounce(() => console.log('Resized!'), 500));" |
154 | 154 | ], |
155 | 155 | "tags": ["javascript", "utility", "debounce", "performance"], |
156 | | - "author": "dostonnabotov" |
| 156 | + "author": "technoph1le" |
157 | 157 | }, |
158 | 158 | { |
159 | 159 | "title": "Throttle Function", |
|
183 | 183 | "document.addEventListener('scroll', throttle(() => console.log('Scrolled!'), 1000));" |
184 | 184 | ], |
185 | 185 | "tags": ["javascript", "utility", "throttle", "performance"], |
186 | | - "author": "dostonnabotov" |
| 186 | + "author": "technoph1le" |
187 | 187 | } |
188 | 188 | ] |
189 | 189 | }, |
|
203 | 203 | "toggleClass(element, 'active');" |
204 | 204 | ], |
205 | 205 | "tags": ["javascript", "dom", "class", "utility"], |
206 | | - "author": "dostonnabotov" |
| 206 | + "author": "technoph1le" |
207 | 207 | }, |
208 | 208 | { |
209 | 209 | "title": "Smooth Scroll to Element", |
|
218 | 218 | "smoothScroll(target);" |
219 | 219 | ], |
220 | 220 | "tags": ["javascript", "dom", "scroll", "ui"], |
221 | | - "author": "dostonnabotov" |
| 221 | + "author": "technoph1le" |
222 | 222 | } |
223 | 223 | ] |
224 | 224 | }, |
|
237 | 237 | "addToLocalStorage('user', { name: 'John', age: 30 });" |
238 | 238 | ], |
239 | 239 | "tags": ["javascript", "localStorage", "storage", "utility"], |
240 | | - "author": "dostonnabotov" |
| 240 | + "author": "technoph1le" |
241 | 241 | }, |
242 | 242 | { |
243 | 243 | "title": "Retrieve Item from localStorage", |
|
253 | 253 | "console.log(user); // Output: { name: 'John', age: 30 }" |
254 | 254 | ], |
255 | 255 | "tags": ["javascript", "localStorage", "storage", "utility"], |
256 | | - "author": "dostonnabotov" |
| 256 | + "author": "technoph1le" |
257 | 257 | }, |
258 | 258 | { |
259 | 259 | "title": "Clear All localStorage", |
|
267 | 267 | "clearLocalStorage(); // Removes all items from localStorage" |
268 | 268 | ], |
269 | 269 | "tags": ["javascript", "localStorage", "storage", "utility"], |
270 | | - "author": "dostonnabotov" |
| 270 | + "author": "technoph1le" |
271 | 271 | } |
272 | 272 | ] |
273 | 273 | } |
|
0 commit comments