question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Function parameters

See original GitHub issue

Please include the function parameters for each callback in the documentation and examples.

As far as I can tell, these are what I could find:

each: function(element) {
  // what element?
},
noMatch: function(keyword) {
  // keyword - mark
  // regexp - markRegExp
},
done: function(count) {
  // count = totalMatches
},
filter: function(node, term, counter, totalCounter) {
  // node, kw, matches, totalMatches - mark
  // node, match, totalMatches - markRegExp
}

Update: what I mean is in the example files, like this:

https://jsfiddle.net/Mottie/vpav6tL1/145/

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
julmotcommented, Sep 4, 2016

@Mottie I’m going to close this issue now, as I’ve completed all above named todos.

1reaction
julmotcommented, Aug 28, 2016

@Mottie As of v8.0.0 the function parameters of the filter callback of .mark() are now in the same order as markRegExp()

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Function Parameters - W3Schools
Function parameters are the names listed in the function definition. Function arguments are the real values passed to (and received by) the function....
Read more >
JavaScript Function Parameters - GeeksforGeeks
The Javascript Function Parameters are the names that are defined in the function definition and real values passed to the function in the ......
Read more >
Function Parameters - Ibiblio
A function can take parameters which are just values you supply to the function so that the function can do something utilising those...
Read more >
Function Parameters | Intro to JS: Drawing & Animation
var drawWinston = function() { ... Pamela shows how you can pass parameters into custom functions, so that they can behave differently each...
Read more >
Functions - The Modern JavaScript Tutorial
Parameters · A parameter is the variable listed inside the parentheses in the function declaration (it's a declaration time term). · An argument ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found