{@link http://gruntjs.com/api/grunt.util}
The linefeed character, normalized for the current operating system. (\r\n on Windows, \n otherwise)
Normalizes both "returns a value" and "passes result to a callback" functions to always pass a result to the specified callback. If the original function returns a value, that value will now be passed to the callback, which is specified as the last argument, after all other predefined arguments. If the original function passed a value to a callback, it will continue to do so.
(callback: (result: R) => void) => void
(a: A, callback: (result: R) => void) => void
(a: A, b: B, callback: (result: R) => void) => void
(a: A, b: B, c: C, callback: (result: R) => void) => void
(a: A, b: B, c: C, d: D, callback: (result: R) => void) => void
Return a new Error instance (that can be thrown) with the appropriate message. If an Error object is specified instead of message that object will be returned. Also, if an Error object is specified for origError and Grunt was run with the --debug 9 option, the original Error stack will be dumped.
Error
Error
Error
Return the "kind" of a value. Like typeof but returns the internal Class value. Possible results are "number", "string", "boolean", "function", "regexp", "array", "date", "error", "null", "undefined" and the catch-all "object".
string
Given a string, return a new string with all the linefeeds normalized for the current operating system. (\r\n on Windows, \n otherwise)
string
Given str of "a/b", If n is 1, return "a" otherwise "b". You can specify a custom separator if '/' doesn't work for you.
string
Recurse through nested objects and arrays, executing callbackFunction for each non-object value. If continueFunction returns false, a given object or value will be skipped.
Return string str repeated n times.
string
Spawn a child process, keeping track of its stdout, stderr and exit code. The method returns a reference to the spawned child. When the child exits, the done function is called.
a function with arguments: error - If the exit code was non-zero and a fallback wasn't specified, an Error object, otherwise null. result - The result object is an code - The numeric exit code.
Given an array or array-like object, return an array. Great for converting arguments objects into arrays.
Array<T>