CSSTransformValue.forEach()
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
CSSTransformValue.forEach() メソッドは、指定された関数を CSSTransformValue の各要素に対して一度だけ実行します。
構文
js
// アロー関数
forEach((currentValue) => { /* … */ } )
forEach((currentValue, index) => { /* … */ } )
forEach((currentValue, index, array) => { /* … */ } )
// コールバック関数
forEach(callbackFn)
forEach(callbackFn, thisArg)
// インラインコールバック関数
forEach(function(currentValue) { /* … */ })
forEach(function(currentValue, index) { /* … */ })
forEach(function(currentValue, index, array) { /* … */ })
forEach(function(currentValue, index, array) { /* … */ }, thisArg)
引数
callbackFn-
各要素に対して実行する関数で、3 つの引数を取ります。
currentValue-
現在処理中の要素の値です。
index省略可-
現在処理中の要素の位置です。
array省略可-
forEach()が実行されているCSSTransformValueです。
thisArg省略可-
callbackが実行されるときにthisとして扱われる値(すなわち、Objectの参照)です。
返値
なし (undefined)。
例
To Do
仕様書
No specification found
No specification data found for api.CSSTransformValue.forEach.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
ブラウザーの互換性
BCD tables only load in the browser