Half success, don't recognise the arrow function return value
/**
* Given two intervals, return the union of the two intervals.
* @returns None
*/exportconstunion=([Vm,VM],[Bm,BM])=>[Math.max(Vm,Bm),Math.min(VM,BM)];/**
* Given a viewport and a bounding box, return the part of the bounding box that is visible in the
* viewport.
* @param view - the viewport, a 2-element array of the form [x, y]
* @param box - the box to clip against
* @param [] - `view` is the viewport, which is a box with two numbers.
* @returns None
*/exportconstclip=(view,box,[a,b]=union(view,box))=>b>a?[a,b]:false;
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Half success, don't recognise the arrow function return value