| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fd4c05a commit ce3a5af
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -257,14 +257,14 @@ function debuglog(set) { | |||
| 257 | 257 | } | |
| 258 | 258 | ||
| 259 | 259 | /** | |
| 260 | - * Echos the value of a value. Tries to print the value out | ||
| 260 | + * Echos the value of any input. Tries to print the value out | ||
| 261 | 261 | * in the best way possible given the different types. | |
| 262 | 262 | * | |
| 263 | - * @param {Object} obj The object to print out. | ||
| 263 | + * @param {any} value The value to print out. | ||
| 264 | 264 | * @param {Object} opts Optional options object that alters the output. | |
| 265 | 265 | */ | |
| 266 | - /* Legacy: obj, showHidden, depth, colors*/ | ||
| 267 | - function inspect(obj, opts) { | ||
| 266 | + /* Legacy: value, showHidden, depth, colors*/ | ||
| 267 | + function inspect(value, opts) { | ||
| 268 | 268 | // Default options | |
| 269 | 269 | const ctx = { | |
| 270 | 270 | seen: [], | |
@@ -298,7 +298,7 @@ function inspect(obj, opts) { | |||
| 298 | 298 | } | |
| 299 | 299 | if (ctx.colors) ctx.stylize = stylizeWithColor; | |
| 300 | 300 | if (ctx.maxArrayLength === null) ctx.maxArrayLength = Infinity; | |
| 301 | - return formatValue(ctx, obj, ctx.depth); | ||
| 301 | + return formatValue(ctx, value, ctx.depth); | ||
| 302 | 302 | } | |
| 303 | 303 | inspect.custom = customInspectSymbol; | |
| 304 | 304 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments