MCPcopy 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
228function truncate(value, max = 80) {
229 return value.length > max ? `${value.slice(0, max)}...` : value
230}
231
232module.exports = {
233 WebExtension,

Callers 1

asBase64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected