Slide 18
Slide 18 text
const index = stableTypeOrdering
? binarySearch(typeSet, type, identity, compareTypes) //
内容ベース
: (len && type.id > typeSet[len - 1].id
? ~len
: binarySearch(typeSet, type, getTypeId, compareValues)); // ID
ベース
if (index < 0) {
typeSet.splice(~index, 0, type);
}
addTypeToUnion
内のフラグ分岐
Copyright dip.inc All Rights Reserved. 18 / 33