Function parameters
See original GitHub issuePlease 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:
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Mottie I’m going to close this issue now, as I’ve completed all above named todos.
@Mottie As of v8.0.0 the function parameters of the
filter
callback of.mark()
are now in the same order asmarkRegExp()