fix(core): Use shift instead of array index
This commit is contained in:
parent
02c816a10d
commit
0251b30372
1 changed files with 1 additions and 2 deletions
|
@ -265,8 +265,7 @@ export function curvesIntersect(fromA, cp1A, cp2A, toA, fromB, cp1B, cp2B, toB)
|
|||
}
|
||||
if (!dupe) unique.push(i)
|
||||
}
|
||||
if (unique.length === 1) return unique[0]
|
||||
return unique
|
||||
return unique.length === 1 ? unique.shift() : unique
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue