/**
 * Reserved props
 */ export const PROPS_RESERVED = { children : true , parent : true , object : true , physics : true , physicsType : true , instance : true , scene : true , } ; param props export default function sanitizeProps ( props ) { return Object . keys ( props ) . reduce ( ( filteredProps , key ) => { if ( Object . keys ( PROPS_RESERVED ) . indexOf ( key ) === - 1 ) { return { ... filteredProps , [ key ] : props [ key ] , } ; } return { ... filteredProps , } ; } , { } ) ; }