UNPKG

image-focus

Version:

A dependency free utility for cropping images based on a focal point ~2.13kB gzipped

7 lines (6 loc) 170 B
export function assign(target: any, ...sources) { sources.forEach(source => Object.keys(source).forEach(key => (target[key] = source[key])) ); return target; }