Acme.BookStore.HttpApi.Host/node_modules/es5-ext/test/string/#/pad.js

(完整代码) 541B

"use strict";

var partial = require("../../../function/#/partial");

module.exports = {
	Left: function (t, a) {
		t = partial.call(t, "x", 5);

		a(t.call("yy"), "xxxyy");
		a(t.call(""), "xxxxx", "Empty string");

		a(t.call("yyyyy"), "yyyyy", "Equal length");
		a(t.call("yyyyyyy"), "yyyyyyy", "Longer");
	},
	Right: function (t, a) {
		t = partial.call(t, "x", -5);

		a(t.call("yy"), "yyxxx");
		a(t.call(""), "xxxxx", "Empty string");

		a(t.call("yyyyy"), "yyyyy", "Equal length");
		a(t.call("yyyyyyy"), "yyyyyyy", "Longer");
	}
};

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。