---
layout:     post
title:      "ES2015 code snippets using pure functions"
subtitle:   "Functional code snippets for commonly used utility methods using ES2015"
date:       2016-05-14 11:00:00
author:     "Aditya Pratap Singh"
header-img: "img/dist/home-bg.jpg"
---

1. Pure `map()` function

  {% gist af83cc5037590bd4ca7ad3072342dd83 map.js %}
  
2. Pure `len()` function

  {% gist af83cc5037590bd4ca7ad3072342dd83 len.js %}
  
3. Pure `range()` function

  {% gist af83cc5037590bd4ca7ad3072342dd83 range.js %}
---
layout:     post
title:      "ES2015 code snippets using pure functions"
subtitle:   "Functional code snippets for commonly used utility methods using ES2015"
date:       2016-05-14 11:00:00
author:     "Aditya Pratap Singh"
header-img: "img/dist/home-bg.jpg"
---

1. Pure `map()` function

      {% gist af83cc5037590bd4ca7ad3072342dd83 map.js %}
  

2. Pure `len()` function

      {% gist af83cc5037590bd4ca7ad3072342dd83 len.js %}
  
  
3. Pure `range()` function

      {% gist af83cc5037590bd4ca7ad3072342dd83 range.js %}
  
  
Fix the indentation and ordered list numbers
Fix the indentation and ordered list numbers
