examples/intermediate/http-search-github/src/main.js
Function main
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function main(sources) {
// Requests for Github repositories happen when the input field changes,
// debounced by 500ms, ignoring empty input field.
const searchRequest$ = sources.DOM.select('.field').events('input')
.compose(sources.Time.debounce(500))