# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

.DS_Store
// Lesson : Array includes method in ES2016 (ES7)
// Author : Akash Gutha

const x = [ 'animals', 'cows', 'ducks' ]

console.log( x.includes('cows') )

// old method
console.log( x.indexOf('cows') >= 0 )

console.log( x.includes( 'goats' ) )
// Lesson : Array includes method in ES2016 (ES7)
// Author : Akash Gutha



const x = [NaN];

console.log(x.includes(NaN));

// older method
console.log( x.indexOf(NaN) >= 0 )

console.log([-0].includes(+0))

const y = Uint8Array.of(1,5,6,6,7,8)
console.log( y.includes(8) )
<!DOCTYPE html>
<html>

  <body>
    <!-- // make console.log write to the page for better in-browser experience -->
    <script>
      (function () {
        var body = document.querySelector('body');
        body.style['fontFamily'] = 'monospace';
        body.style['fontSize'] = '2em';
        console.log = function (x) { body.innerText += x + '\n'; };
      }());
    </script>
    <!-- 
    include array-inculdes.js for the previous examples 
    -->
    <script src="examples.js"></script>
  </body>
</html>