Working with ES6 ES6 functions are only detected in the version 2.1 suite script.Eg: filter(), find() etc.So, while writing library scripts maximum avoid using ES6 functions to avoid errors in other scripts which use this library.