Functions§
- apply_
define_ 🔒property - make_
property_ 🔒descriptor - math_
acos 🔒 - math_
acosh 🔒 - math_
asin 🔒 - math_
asinh 🔒 - math_
atan 🔒 - math_
atan2 🔒 - math_
atanh 🔒 - math_
cbrt 🔒 - math_
clamp 🔒 Math.clamp(x, min, max)(ECMAScript Proposal Stage 3/4)。 数値 x を [min, max] の範囲内に制限する。- math_
clz32 🔒 Math.clz32(x)(ES2015)が丸ごと未対応だった。xを仕様どおりToUint32(下位32bitへ切り詰め)してから先頭の連続 0 ビット数を返す(x=0は 32)。- math_
cosh 🔒 - math_
expm1 🔒 - math_
f16round 🔒 Math.f16round(x)(ES2025)。半精度 16bit 浮動小数点数(IEEE 754 half-precision float) として表現可能な最も近い値へ丸める(Float16Array と同等の丸め)。- math_
fround 🔒 Math.fround(x)(ES2015)が丸ごと未対応だった。32bit 単精度浮動小数点として 表現可能な最も近い値へ丸める(WebGL/Canvas 等で GPU 側の float32 精度に 合わせる定番イディオム)。f64 -> f32 -> f64の往復キャストで単精度の 丸め誤差を再現する。- math_
hypot 🔒 - math_
imul 🔒 Math.imul(a, b)(ES2015)が丸ごと未対応だった。両引数をToInt32してから 32bit 整数の乗算をラップアラウンド(オーバーフロー時は下位32bitのみ保持)で 行う。通常の浮動小数点乗算は 2^53 を超えると精度落ちするため、64bit整数の 大きな値を正確に掛け合わせたい場面で使われる。- math_
log2 🔒 - math_
log1p 🔒 - math_
log10 🔒 - math_
sinh 🔒 - math_
sum_ 🔒precise Math.sumPrecise(iterable)(ES2025 Standard)。 反復可能オブジェクト(Array, Set, Map Iterator 等)内のすべての数値を正確に合計する。 特殊値 (NaN, +Inf/-Inf の混在) や IEEE 754 の丸め誤差を Kahan-Babuška-Neumaier 補正加算で精密に処理。- math_
tan 🔒 - math_
tanh 🔒 - number_
is_ 🔒finite_ static - number_
is_ 🔒integer - number_
is_ 🔒nan_ static - number_
is_ 🔒safe_ integer - object_
create 🔒 - object_
define_ 🔒properties - object_
define_ 🔒property - object_
freeze 🔒 Object.freeze(obj)。以前は「凍結は no-op(同一オブジェクトを返すだけ)」という 明示的な簡略化だったが、set_property()/delete側にfrozenフラグの実チェックを 追加したことで、実際にプロパティの追加・変更・削除を黙殺するようになった。- object_
from_ 🔒entries - object_
get_ 🔒own_ property_ descriptor - object_
get_ 🔒own_ property_ descriptors - object_
get_ 🔒prototype_ of Object.getPrototypeOf(obj)(ES5)。Reflect.getPrototypeOfと同じロジックだが、 こちらはinstanceof/クラス継承の確認によく使われる、はるかに一般的な API。- object_
is 🔒 Object.is(a, b)(ES2015、SameValue)。===/SameValueZero と違い、NaN同士は 等しいと判定し、かつ+0/-0は区別して等しくないと判定する(両方の性質を持つのは SameValue だけ。SameValueZero は+0/-0を区別しない)。- object_
is_ 🔒extensible - object_
is_ 🔒frozen Object.isFrozen(obj)。プリミティブは仕様どおり常に true(凍結済み扱い)。- object_
is_ 🔒sealed - object_
prevent_ 🔒extensions Object.preventExtensions(obj)(sealよりさらに弱い: 新規プロパティの追加のみ禁止)。- object_
seal 🔒 Object.seal(obj)(freezeより弱い: 新規プロパティの追加・既存プロパティの削除のみ 禁止し、既存値の変更は許可する)。freezeと同様、以前は丸ごと欠落していた。- object_
set_ 🔒prototype_ of Object.setPrototypeOf(obj, proto)(ES6)。protoがnullならプロトタイプ連鎖を切る。