Skip to content

ptim/phantomjs-polyfill-find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

phantomjs-polyfill-find

Array.prototype.find polyfill for phantom.js based on https://github.com/tom-james-watson/phantomjs-polyfill

This is a polyfill for Array.prototype.find which is missing from PhantomJS.

Installation

    npm install --save-dev ptim/phantomjs-polyfill-find

Usage

    require('phantomjs-polyfill')

Usage with Karma

Include the polyfill directly in the files list of your karma.conf

    ...
    files: [
      './node_modules/phantomjs-polyfill-find/find-polyfill.js',
      ...
    ]
    ...

About

Simple polyfill for Array.prototype.find in phantom.js based on https://github.com/tom-james-watson/phantomjs-polyfill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published