File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -816,10 +816,7 @@ const s_GET_DYNAMIC_INVOKE_METHODS = (obj) =>
816
816
{
817
817
Object . getOwnPropertyNames ( obj ) . forEach ( ( prop ) =>
818
818
{
819
- if ( props . indexOf ( prop ) === - 1 && target [ prop ] instanceof Function && prop . startsWith ( '_$' ) )
820
- {
821
- props . push ( prop ) ;
822
- }
819
+ if ( ! props . includes ( prop ) && target [ prop ] instanceof Function && prop . startsWith ( '_$' ) ) { props . push ( prop ) ; }
823
820
} ) ;
824
821
825
822
obj = Object . getPrototypeOf ( obj ) ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export default class AbstractParamParser
172
172
result . types = [ typeText ] ;
173
173
}
174
174
175
- result . spread = typeText . indexOf ( '...' ) === 0 ;
175
+ result . spread = typeText . startsWith ( '...' ) ;
176
176
}
177
177
else
178
178
{
You can’t perform that action at this time.
0 commit comments