Sha256: 8d870a97871f0aee3baec6febe4ae9b4520c05fe01a380ec5accb307c4abf12a

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

'use strict';

var callBound = require('call-bind/callBound');
var $replace = callBound('String.prototype.replace');

/* eslint-disable no-control-regex */
var endWhitespace = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*$/;
/* eslint-enable no-control-regex */

module.exports = function trimEnd() {
	return $replace(this, endWhitespace, '');
};

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/string.prototype.trimend/implementation.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/string.prototype.trimend/implementation.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/string.prototype.trimend/implementation.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/string.prototype.trimend/implementation.js