.fill function usage in react code example Example: array js fill let filledArray = new Array(10).fill({'hello':'goodbye'});