UNPKG
moduloteste
Version:
latest (1.0.0)
1.0.0
um modulo de teste
moduloteste
/
sorted-object
/
lib
/
sorted-object.js
12 lines
(8 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
module
.
exports
=
function
(
input
) {
var
output =
Object
.
create
(
null
);
Object
.
keys
(input).
sort
().
forEach
(
function
(
key
) { output[key] = input[key]; });
return
output; };