for (var i = start; i < end; i++) {
this[i] = value
}
+
+ return this
}
Buffer.prototype.inspect = function () {
// HELPER FUNCTIONS
// ================
-function stringtrim (str) {
- if (str.trim) return str.trim()
- return str.replace(/^\s+|\s+$/g, '')
-}
-
var BP = Buffer.prototype
/**
return arr
}
+function stringtrim (str) {
+ if (str.trim) return str.trim()
+ return str.replace(/^\s+|\s+$/g, '')
+}
+
// slice(start, end)
function clamp (index, len, defaultValue) {
if (typeof index !== 'number') return defaultValue