We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdc1523 commit ab8801aCopy full SHA for ab8801a
lib/node_modules/@stdlib/string/for-each/examples/index.js
@@ -20,20 +20,11 @@
20
21
var forEach = require( './../lib' );
22
23
-/* eslint-disable no-unused-vars */
24
-function log( value, index, str ) {
25
- var repeatStr = value + value;
26
- console.log( '%s: %d', index, repeatStr );
+function log( value, index ) {
+ console.log( '%d: %s', index, value );
27
}
28
29
-// Iterates over each visual character:
30
forEach( 'presidential election', log );
31
-
32
33
forEach( 'Iñtërnâtiônàlizætiøn', log );
34
35
36
forEach( '🌷🍕', log );
37
38
39
forEach( '\uD834\uDD1E', log );
0 commit comments