From 0f58ae392b0f90a64dde5ca48c3937bf5d586214 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 12 Dec 2018 17:14:41 +0100 Subject: util: `format()` now formats bigint and booleans This is necessary to distinguish them from other data types. PR-URL: https://github.com/nodejs/node/pull/25046 Reviewed-By: James M Snell Reviewed-By: Matteo Collina Reviewed-By: Anto Aravinth --- doc/api/util.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc/api/util.md') diff --git a/doc/api/util.md b/doc/api/util.md index 19032aaab2..396667be13 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -245,8 +245,7 @@ util.format('%s:%s', 'foo'); ``` Values that are not part of the format string are formatted using -`util.inspect()` if their type is either `'object'`, `'symbol'`, `'function'` -or `'number'` and using `String()` in all other cases. +`util.inspect()` if their type is not `string`. If there are more arguments passed to the `util.format()` method than the number of specifiers, the extra arguments are concatenated to the returned -- cgit v1.2.3