Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1'use strict';
2
3/**
4 * Determines whether the payload is an error thrown by Axios
5 *
6 * @param {*} payload The value to test
7 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
8 */
9module.exports = function isAxiosError(payload) {
10 return (typeof payload === 'object') && (payload.isAxiosError === true);
11};
12

After

1'use strict';
2
3var utils = require('./../utils');
4
5/**
6 * Determines whether the payload is an error thrown by Axios
7 *
8 * @param {*} payload The value to test
9 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
10 */
11module.exports = function isAxiosError(payload) {
12 return utils.isObject(payload) && (payload.isAxiosError === true);
13};
14

Before

program
expression_statement
string
' "'"
string_fragment "use strict"
' "'"
; ";"
comment "/**\n * Determines whether the payload is an error thrown by "...
expression_statement
assignment_expression
member_expression
identifier "module"
. "."
property_identifier "exports"
= "="
function_expression
function "function"
identifier "isAxiosError"
formal_parameters
( "("
identifier "payload"
) ")"
statement_block
{ "{"
return_statement
return "return"
binary_expression
parenthesized_expression
( "("
binary_expression
unary_expression
typeof "typeof"
identifier "payload"
=== "==="
string
' "'"
string_fragment "object"
' "'"
) ")"
&& "&&"
parenthesized_expression
( "("
binary_expression
member_expression
identifier "payload"
. "."
property_identifier "isAxiosError"
=== "==="
true "true"
) ")"
; ";"
} "}"
; ";"

After

program
expression_statement
string
' "'"
string_fragment "use strict"
' "'"
; ";"
variable_declaration
var "var"
variable_declarator
identifier "utils"
= "="
call_expression
identifier "require"
arguments
( "("
string
' "'"
string_fragment "./../utils"
' "'"
) ")"
; ";"
comment "/**\n * Determines whether the payload is an error thrown by "...
expression_statement
assignment_expression
member_expression
identifier "module"
. "."
property_identifier "exports"
= "="
function_expression
function "function"
identifier "isAxiosError"
formal_parameters
( "("
identifier "payload"
) ")"
statement_block
{ "{"
return_statement
return "return"
binary_expression
call_expression
member_expression
identifier "utils"
. "."
property_identifier "isObject"
arguments
( "("
identifier "payload"
) ")"
&& "&&"
parenthesized_expression
( "("
binary_expression
member_expression
identifier "payload"
. "."
property_identifier "isAxiosError"
=== "==="
true "true"
) ")"
; ";"
} "}"
; ";"