Skip to content

Commit c78cc26

Browse files
committed
refactor: reorganize isObject method in Sanitizer for improved clarity
1 parent 8152f47 commit c78cc26

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/modules/sanitizer.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
* - represent class as <class SomeClass> or <instance of SomeClass>
88
*/
99
export default class Sanitizer {
10-
/**
11-
* Check if passed variable is an object
12-
*
13-
* @param target - variable to check
14-
*/
15-
public static isObject(target: any): boolean {
16-
return Sanitizer.typeOf(target) === 'object';
17-
}
18-
1910
/**
2011
* Maximum string length
2112
*/
@@ -37,6 +28,15 @@ export default class Sanitizer {
3728
*/
3829
private static readonly maxArrayLength: number = 10;
3930

31+
/**
32+
* Check if passed variable is an object
33+
*
34+
* @param target - variable to check
35+
*/
36+
public static isObject(target: any): boolean {
37+
return Sanitizer.typeOf(target) === 'object';
38+
}
39+
4040
/**
4141
* Apply sanitizing for array/object/primitives
4242
*

0 commit comments

Comments
 (0)