MCPcopy Create free account
hub / github.com/nodejs/node / createOption

Method createOption

deps/v8/tools/zone-stats/details-selection.js:279–284  ·  view source on GitHub ↗
(value, text)

Source from the content-addressed store, hash-verified

277 }
278
279 createOption(value, text) {
280 const option = document.createElement('option');
281 option.value = value;
282 option.text = text;
283 return option;
284 }
285
286 populateSelect(id, iterable, labelFn = null, autoselect = null) {
287 if (labelFn == null) labelFn = e => e;

Callers 1

populateSelectMethod · 0.95

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected