/**
 * Copyright 2018 Twitter, Inc.
 * Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 */ export function foreachObject < T , U > ( object , callback , context ? ) { if ( ! object ) { return null ; } for ( const name in object ) { if ( Object . prototype . hasOwnProperty . call ( object , name ) ) { callback . call ( context , object [ name ] , name , object ) ; } } }