@@ -22,13 +22,13 @@ try {
22
22
23
23
export { asyncFunc }
24
24
25
- export function hasOwnProp ( obj : object , prop : string ) {
25
+ export function hasOwnProp ( obj : object , prop : string ) {
26
26
return Object . prototype . hasOwnProperty . call ( obj , prop )
27
27
}
28
28
29
- export function copyProps < T > ( toObj : T , fromObj : T , notConfig ?: boolean ) {
29
+ export function copyProps < T > ( toObj : T , fromObj : T , notConfig ?: boolean ) {
30
30
for ( var key in fromObj ) {
31
- if ( hasOwnProp ( ( fromObj as unknown ) as object , key ) ) {
31
+ if ( hasOwnProp ( fromObj as unknown as object , key ) ) {
32
32
if (
33
33
fromObj [ key ] != null &&
34
34
typeof fromObj [ key ] == 'object' &&
@@ -48,7 +48,7 @@ export function copyProps<T> (toObj: T, fromObj: T, notConfig?: boolean) {
48
48
return toObj
49
49
}
50
50
51
- function trimWS (
51
+ function trimWS (
52
52
str : string ,
53
53
env : SqrlConfig ,
54
54
wsLeft : string | false ,
@@ -114,8 +114,8 @@ function trimWS (
114
114
}
115
115
116
116
// credit to pugjs/pug
117
- function isValidJSIdentifier ( str : string ) {
118
- return / ^ [ a - z A - Z _ $ ] [ a - z A - Z 0 - 9 _ $ ] * $ / . test ( name ) ;
117
+ function isValidJSIdentifier ( name : string ) {
118
+ return / ^ [ a - z A - Z _ $ ] [ a - z A - Z 0 - 9 _ $ ] * $ / . test ( name )
119
119
}
120
120
121
- export { trimWS , isValidJSIdentifier }
121
+ export { isValidJSIdentifier , trimWS }
0 commit comments