Non-existent properties of number value should not be accessed
- No tags
This rule applies when non-existent properties of number value are accessed.
Accessing non-existent properties of number value results in
Noncompliant Code ExampleView with compliant examples side by side
var x = 1234; var y = x.length; // BAD_NUMBER_PROPERTY alarm
Compliant Code ExampleView with noncompliant examples side by side
var x = 1234; var y = x.toString().length;
This rule was introduced in DeepScan 1.0.0-alpha.