chore: fix linting

This commit is contained in:
harttle
2019-02-23 03:50:45 +08:00
parent 56c7992b76
commit 3cf01603e8
35 changed files with 107 additions and 110 deletions
+2 -2
View File
@@ -77,10 +77,10 @@ export function isError (value: any): boolean {
* @param {Function} iteratee The function invoked per iteration.
* @return {Object} Returns object.
*/
export function forOwn <T>(
export function forOwn <T> (
object: {[key: string]: T} | undefined,
iteratee: ((val: T, key: string, obj: {[key: string]: T}) => boolean | void)
) {
) {
object = object || {}
for (const k in object) {
if (object.hasOwnProperty(k)) {