Skip to content

can replace this with equivalent in object methods #181

Open
@samualtnorman

Description

@samualtnorman
export default () => ({
	count: 0,
	increment() {
		this.count++
	}
})

can become

function () {
	let _THIS_
	
	return _THIS_ = {
		count: 0,
		increment() {
			_THIS_.count++
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions