Sha256: 497175d60f61efeea32aec587f09c9cc365dcf210b90dc73081fc8bceb175727

Contents?: true

Size: 454 Bytes

Versions: 14

Compression:

Stored size: 454 Bytes

Contents

'use strict';

var bind = require('function-bind');
var replace = bind.call(Function.call, String.prototype.replace);

/* eslint-disable no-control-regex */
var rightWhitespace = /[\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 trimRight() {
	return replace(this, rightWhitespace, '');
};

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.18.2 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.16.1 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.15.2 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.18.4 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.18.1 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.14.0 test/dummy/node_modules/string.prototype.trimright/implementation.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/string.prototype.trimright/implementation.js
enju_library-0.3.8 spec/dummy/node_modules/string.prototype.trimright/implementation.js
ilog-0.4.1 node_modules/string.prototype.trimright/implementation.js
ilog-0.4.0 node_modules/string.prototype.trimright/implementation.js
ilog-0.3.3 node_modules/string.prototype.trimright/implementation.js
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/string.prototype.trimright/implementation.js