Skip to content

Commit 4e8dc61

Browse files
committed
docs: add string and float examples for TS
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 0165b63 commit 4e8dc61

File tree

1 file changed

+14
-0
lines changed
  • lib/node_modules/@stdlib/console/log-each/docs/types

1 file changed

+14
-0
lines changed

lib/node_modules/@stdlib/console/log-each/docs/types/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@
3535
*
3636
* logEach( '%d < %d ', x, y );
3737
* // e.g., => '1 < 4\n2 < 5\n3 < 6\n'
38+
*
39+
* @example
40+
* var x = [ 0.5, 1.0, 1.5 ];
41+
* var y = [ 0.25, 0.5, 0.75 ];
42+
*
43+
* logEach( '%0.2f > %0.2f', x, y );
44+
* // e.g., => '0.50 > 0.25\n1.00 > 0.50\n1.50 > 0.75\n'
45+
*
46+
* @example
47+
* var x = [ 'foo', 'bar' ];
48+
* var y = [ 'beep', 'boop' ];
49+
*
50+
* logEach( 'x: %s, y: %s', x, y );
51+
* // e.g., => 'x: foo, y: beep\nx: bar, y: boop\n'
3852
*/
3953
declare function logEach( str: string, ...args: any ): void;
4054

0 commit comments

Comments
 (0)