Skip to content

Instantly share code, notes, and snippets.

@JimRottinger
Created May 20, 2019 19:22
Show Gist options
  • Save JimRottinger/7c04de45e4958e886704c87782b7fb7c to your computer and use it in GitHub Desktop.
Save JimRottinger/7c04de45e4958e886704c87782b7fb7c to your computer and use it in GitHub Desktop.
function identity (value: Number) : Number {
return value;
}
console.log(identity(1)) // 1
@codeBelt
Copy link

All your Number should be number. TypeScript primitive types are all lowercasse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment