JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<p>
Please write function that get object as an argument and function-handler that will be applyed for this object itself, every value of every property of this object and all properties values in depth.
Also shoud work if value is an array
</p>
</div>
TypeScript
function func(obj:unknown, fieldFn: (field: unknown) => void) {
}