File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
config/plugin-commands-config/test Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import { config } from '@pnpm/plugin-commands-config'
5
5
* Recursively clone an object and give every object inside the clone a null prototype.
6
6
* Making it possible to compare it to the result of `ini.decode` with `toStrictEqual`.
7
7
*/
8
- function deepNullProto < Object > ( object : Object ) : Object {
9
- if ( object == null || typeof object !== 'object' || Array . isArray ( object ) ) return object
8
+ function deepNullProto < Value > ( value : Value ) : Value {
9
+ if ( value == null || typeof value !== 'object' || Array . isArray ( value ) ) return value
10
10
11
- const result : Object = Object . create ( null )
12
- for ( const key in object ) {
13
- result [ key ] = deepNullProto ( object [ key ] )
11
+ const result : Value = Object . create ( null )
12
+ for ( const key in value ) {
13
+ result [ key ] = deepNullProto ( value [ key ] )
14
14
}
15
15
return result
16
16
}
You can’t perform that action at this time.
0 commit comments