Hatena::Groupmoz-addon

Ci.nsIZIGOROu

2007-10-31歯が痛い

Scripting.Dictionaryを使って配列のunique化

| 02:48 |  Scripting.Dictionaryを使って配列のunique化 - Ci.nsIZIGOROu を含むブックマーク はてなブックマーク -  Scripting.Dictionaryを使って配列のunique化 - Ci.nsIZIGOROu

と言うのを思いついた。

function unique(arr) {
  var dic = new ActiveXObject("Scripting.Dictionary");
  for (var i = 0, l = arr.length; i < l; i++) {
    if (!dic.Exists(arr[i])) {
      dic.Add(arr[i], 1);
    }
  }
  return new VBArray(dic.Keys()).toArray();
}

動作未確認だけど多分いけるはず。

ブラウザでも多分動く。

見事に動いた。オブジェクトでも大丈夫っぽぃ

amachangamachang2007/11/01 11:10mjd!!!

ZIGOROuZIGOROu2007/11/01 13:57mjdy

TurgutTurgut2012/09/28 19:53Cool! That's a clever way of loiokng at it!

nvzrukwcpnvzrukwcp2012/09/29 05:34bIJioN <a href="http://wuycwglojouk.com/">wuycwglojouk</a>

xnraegrkkzmxnraegrkkzm2012/09/30 01:23Qvo13X , [url=http://nqdqbukxjixj.com/]nqdqbukxjixj[/url], [link=http://lspccjofrgmj.com/]lspccjofrgmj[/link], http://fphzywlggdgu.com/

akxypzwakxypzw2012/09/30 11:44KGTQYH <a href="http://gbqzitkauedx.com/">gbqzitkauedx</a>

zxgdffzxgdff2012/10/02 03:04gU0Fv1 , [url=http://orutonljcxjs.com/]orutonljcxjs[/url], [link=http://ewbrjnuurbxk.com/]ewbrjnuurbxk[/link], http://exfrdbgkvwnu.com/

GerardmewGerardmew2019/01/30 03:04cialis without a doctor's prescription
mayavanrosendaal.com buy cialis without a doctor's prescription buy cialis without a doctor's prescription cialis without prescription online

JospehhemexJospehhemex2019/01/30 10:18buy cialis soft tabs online
miglior sito per acquisto cialis
over the counter cialis equivalent
need to order cialis

what is the best online pharmacy for cialis
rask levering cialis
does cialis wear off
buy discount cialis online
https://stowe365.com

JospehhemexJospehhemex2019/01/30 19:43compare generic cialis prices
current price of cialis
cialis profession for sale online
cialis next day shipping

cialis manufacturer discount
cialis shop mit mastercard
kup cialis online
no prescription cialis from canada
https://stowe365.com

JospehhemexJospehhemex2019/01/31 05:35shop cialisfarmacia com
cialis kopen
tadacip 20mg generic cialis
cialis discount europe

costo del cialis da 20 mg
cost cialis costco
online cialis pharmacy pay with ach
purchase cialis for daily use online
https://stowe365.com/#Buy-Cialis-20-mg

JospehhemexJospehhemex2019/01/31 16:14buy cialis toronto
brand cialis 20mg from canada
buy cialis discreet
cialis para mujeres

erfahrungen mit cialis-store.net
comprare cialis in egitto
cialis and surgery
nexgen cialis review
https://stowe365.com/#Buy-Cialis-20-mg

JospehhemexJospehhemex2019/02/01 04:21online apotheke cialis 20mg
cialis online kaufen per nachnahme
cheapest cialis buy
extrameds buy cialis

cialis venezuela
cialis does it work
buy cialis shanghai
walmart drug prices for cialis
https://stowe365.com/#Buy-Cialis-20-mg

JospehhemexJospehhemex2019/02/01 23:14cialis super plus australia non generic
cialis online pharmacy paypal
cialis ed pack paypal
best cialis virgra site

cialis lily brand soft tabs
5mg cialis lilly online
cialis tablet cost
cialis malaysia pharmacy
https://stowe365.com

DavidJumDavidJum2019/02/03 03:02kjope cialis online
cialis thailand
<a href="http://kaivanrosendaal.com">cialis 20 mg best price</a>
cialis online serios
cialis drug 5 mg canada
<a href=http://kaivanrosendaal.com/>cialis 30 day sample</a>
order cialis europe
cialis cyprus
http://kaivanrosendaal.com/#cialis-reviews

DavidJumDavidJum2019/02/03 12:51cheaper version of cialis
cialis pills for sale
<a href="http://kaivanrosendaal.com/">cialis coupons printable</a>
much does cialis cost walmart
pastillas cialis mujeres
<a href=http://kaivanrosendaal.com>cialis for daily use</a>
cialis 20 mg cost
composition francaise du cialis
http://kaivanrosendaal.com/#cialis-20-mg

DavidJumDavidJum2019/02/04 22:29cialis 40 mg chocolate video com
cialis kanada
<a href="http://kaivanrosendaal.com">generic cialis at walmart</a>
cialis orlando for sale
cialis generika rezeptfrei deutschland
<a href=http://kaivanrosendaal.com>Buy Cheap Cialis</a>
cialis 5ma canadian
cialis and afib
http://kaivanrosendaal.com/#cialis-savings-card

DavidJumDavidJum2019/02/05 10:43cialis pay by paypal
generic cialis without prescription
<a href="http://kaivanrosendaal.com">cialis vs viagra</a>
cialis for daily use free trial
cialis drugs online
<a href=http://kaivanrosendaal.com/>viagra vs cialis</a>
buy cialis canada 2013
cialis for daily use review
http://kaivanrosendaal.com/#how-does-cialis-work

DavidJumDavidJum2019/02/05 21:28half cialis
cialis in shanghai
<a href="http://kaivanrosendaal.com/">cialis 20 mg</a>
legitimate cialis by mail
order cialis with paypal
<a href=http://kaivanrosendaal.com>cialis coupon</a>
cialis dosage review
cheapest canadian generic cialis
http://kaivanrosendaal.com/#generic-cialis-at-walmart