Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7218bed

Browse files
committed
fix
1 parent 358ad8c commit 7218bed

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

‎public/data/javascript.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,6 @@
171171
"tags": ["string", "manipulation", "word count", "count"],
172172
"author": "axorax"
173173
},
174-
{
175-
"title": "Trim a String to a Specified Length",
176-
"description": "Trims a string to a specified length and appends '...' if it exceeds that length.",
177-
"code": [
178-
"function trimString(str, maxLength) {",
179-
" return str.length > maxLength ? str.slice(0, maxLength) + '...' : str;",
180-
"}",
181-
"",
182-
"// Example usage:",
183-
"console.log(trimString('Hello, world!', 5)); // Output: 'Hello...'"
184-
],
185-
"tags": ["string", "javascript", "trim"],
186-
"author": "axorax"
187-
},
188174
{
189175
"title": "Remove All Whitespace",
190176
"description": "Removes all whitespace from a string.",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /