has-shape
JavaScript
★ 9
updated 4y ago
Very tiny function that checks if an object/array/value is shaped like another, with TypeScript type refining.
No plain-English explanation yet — one is being written right now. Check back in a minute.