Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 649 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 649 Bytes

Map Append

Simple helper to solve bad practice of inserting element one by one into DOM instead of generate all and insert once

Getting Started

Download the production version or the development version.

Examples

<script src="jquery.js"></script>
<script src="dist/map-append.min.js"></script>
<script>
jQuery(function($) {
  $('#container').mapAppend(collection, function(val, key){
  	return '<div>' + val + '</div>';
  });
});
</script>