Pot.js で利用可能。 PotLite.js では利用できません。
Hash を items 形式の配列で取得します。
Pot.Hash インスタンスに設定されているすべての要素を、items() 形式の配列で取得します。
'prototype' や 'hasOwnProperty' などのキー名がある場合でも問題なく扱えます。
インスタンスのすべての要素を持つ items() 形式の配列が返ります。
var hash = new Pot.Hash(); hash.set('prototype', 'value1'); hash.set('__iterator__', 'value2'); hash.set('hasOwnProperty', 'value3'); var result = hash.toItems(); Pot.debug(result); // result: // [ // ['prototype', 'value1'], // ['__iterator__', 'value2'], // ['hasOwnProperty', 'value3'] // ]