★ wanayoo — archive 1999 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/moveNouvelle recherche | Portail wanayoo

Check out Firefox Developer Edition, the first browser built for developers like you. http://mzl.la/112VrtT

mozilla
Your Search Results

    TypedArray.prototype.move()

    この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

    Obsolete since Gecko 34 (Firefox 34 / Thunderbird 34 / SeaMonkey 2.31)
    This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

    Summary

    The move() method used to copy the sequence of array elements within the array to the position starting at target. However, this non-standard method has been replaced with the standard TypedArray.prototype.copyWithin() method. TypedArray is one of the typed array types here.

    Syntax

    typedarray.move(start, end, target)
    

    Parameters

    start
    Source start index position where to start copying elements from.
    end
    Source end index position where to end copying elements from.
    target
    Target start index position where to copy the elements to.

    Examples

    Using the move method

    var buffer = new ArrayBuffer(8);
    var uint8 = new Uint8Array(buffer);
    uint8.set([1,2,3]);
    console.log(uint8); // Uint8Array [ 1, 2, 3, 0, 0, 0, 0, 0 ]
    uint8.move(0,3,3);
    console.log(uint8); // Uint8Array [ 1, 2, 3, 1, 2, 3, 0, 0 ]
    

    Specifications

    Not part of any standard. Superseded by TypedArray.prototype.copyWithin().

    Browser compatibility

    Help improve compatibility tables by filling out this 11 question survey.

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support Not supported Not supported
    (16 - 34 Aurora/Nightly only)
    Not supported Not supported Not supported
    Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support Not supported Not supported Not supported
    (16-34 Aurora/Nightly only)
    Not supported Not supported Not supported

    See also

    ドキュメントのタグと貢献者

    このページへの貢献者: fscholz
    最終更新者: fscholz,