You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * @typedef Fill * @params START_SAFE?, END_SAFE?: target range of fill operation adjusted for out-of-bounds input * @params COUNT?: number of consecutive elements to replace with fill operation * @returns START > END ? T : [...T.slice(0, START_SAFE), ...new Array(COUNT).fill(V), ...T.slice(END_SAFE)] */typeFill<Textendsunknown[],Vextendsunknown,STARTextendsnumber=0,ENDextendsnumber=T["length"],START_SAFEextendsnumber=LessThan<T["length"],START>extendstrue ? T["length"] : START,END_SAFEextendsnumber=LessThan<T["length"],END>extendstrue ? T["length"] : END,COUNTextendsnumber=Subtract<END_SAFE,START_SAFE>,RESULTextendsunknown[]=LessThan<END,START>extendstrue
? T
: [...Pop<T,Subtract<T["length"],START_SAFE>>, ...Repeat<COUNT,V>, ...Shift<T,END_SAFE>],>=RESULT;;
See also: 216 - Slice #21502
The text was updated successfully, but these errors were encountered: