Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ truncate
Function
truncate
javascript/selenium-webdriver/lib/web_extension.js:228–230 ·
view source on GitHub ↗
(value, max = 80)
Source
from the content-addressed store, hash-verified
226
}
227
228
function
truncate(value, max = 80) {
229
return
value.length > max ? `${value.slice(0, max)}...` : value
230
}
231
232
module.exports = {
233
WebExtension,
Callers
1
asBase64
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected