Use .show() method with jQuery 2.0

jQuery 2.0 で .show() メソッドを使用した場合の例です。

HTML

<div id="test">
  <p>テストです。</p>
</div>
<!-- /#test -->

<div>
  <button id="btn-01">Show</button>
</div>

CSS

p {
  margin: 0;
}

#test {
  display: none;
  margin-bottom: 20px;
  width: 200px;
  height: 150px;
  background-color: #efefef;
}

JavaScript

console.log("hellooooo")
var a = [1, 2, 3, 4]
console.log(a.join(", "))
var mapped = $.map(a, (x, i) => {
  console.log(x);
  if (i % 2 == 0) {
    return 2 * x;
  }
  return null;
})
console.log(mapped.join(", "))