diff --git a/node-print/APKBUILD b/node-print/APKBUILD index f66b1b4..2a71078 100644 --- a/node-print/APKBUILD +++ b/node-print/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=node-print -pkgver=13 +pkgver=14 pkgrel=0 pkgdesc="another terrible javascript engine wrapper" url="https://git.ddd.rip/ptrcnull/ptrcports" @@ -30,6 +30,6 @@ package() { sha512sums=" b3dfdeb49637be33d2e2718c5abcf35a87dd55023918c99341273c3b38bd6685189d1f786451a742c47c5f3bc3b58555decb58e2a3a018c9b9ee92043f8fac03 np -29f694b1598de9eb61dce7c259247dbb9716dc4176e4a6c81650a3ec6b047d965e7b5ad32c803c8b97bfa8d0819aae6c86d1309bdce93f9dc29dba990ef192ba index.js +2f3c70b29b8bd3c5c357f4a3ab8bbf3c54dae5193850433310108685a53b6f089501253aa17b6695abf8c3e2944a3aadc7fccc42a3915e906f8b14df81cc610f index.js 9b13784855f3d01b3ab89b15dce6c59949a103ed139e5d858720b064f248dd9bbeca57d7113eed818652f064714054b77a0d7d53097024ead84a21ad69d536d6 test.js " diff --git a/node-print/index.js b/node-print/index.js index 6af3afa..2aa63d8 100644 --- a/node-print/index.js +++ b/node-print/index.js @@ -138,6 +138,14 @@ Array.prototype.shuffle = function() { } } +Array.prototype.uniq = function() { + return new Array(...(new Set(this))) +} + +Array.prototype.lines = function() { + return this.join('\n') +} + Set.prototype.union = function(other) { if (!other || !(other instanceof Set)) throw new TypeError('other must be a Set') return new Set([...this, ...other])