File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -518,15 +518,12 @@ async function _expandObject({
518
518
// if framing, can be a default object, but need to expand
519
519
// key to determine that
520
520
if ( _isObject ( value ) ) {
521
- const expandedValue = { } ;
522
- for ( const [ k , v ] of Object . entries ( value ) ) {
523
- const kk = _expandIri ( typeScopedContext , k , { vocab : true } ) ;
524
- const vv = _asArray ( v ) . map ( vvv =>
525
- _expandIri ( typeScopedContext , vvv , { base : true , vocab : true } )
526
- ) ;
527
- expandedValue [ kk ] = vv ;
528
- }
529
- value = expandedValue ;
521
+ value = Object . fromEntries ( Object . entries ( value ) . map ( ( [ k , v ] ) => [
522
+ _expandIri ( typeScopedContext , k , { vocab : true } ) ,
523
+ _asArray ( v ) . map ( vv =>
524
+ _expandIri ( typeScopedContext , vv , { base : true , vocab : true } )
525
+ )
526
+ ] ) ) ;
530
527
}
531
528
_validateTypeValue ( value , options . isFrame ) ;
532
529
_addValue (
You can’t perform that action at this time.
0 commit comments